- Alias (Mac OS)
In
Mac OS System 7 and later, an alias is a small file that represents another object in a local, remote, or removable [ [http://developer.apple.com/documentation/mac/Files/Files-343.html#HEADING343-15 Files: Chapter 4 - Alias Manager; Search Strategies] —Inside Macintosh developer documentation]file system . It is similar to theUnix symbolic link , but with the added benefit of working even if the target file moves to another location on the same disk. A descendant ofBSD , Mac OS X supports Unix symbolic links as well.A typical alias is small, between 1 and 5 KB. It acts as a stand-in for any object in the file system, such as a
document , an application, afolder , ahard disk , anetwork share or removable medium or a printer. When double-clicked, the computer will act the same way as if the original file had been double-clicked. Likewise, choosing an alias file from within a 'File Open'dialog box would open the original file. The purpose of an alias is to assist the user in managing large numbers of files by providing alternative ways to access them without having to copy the files themselves.An alias is a dynamic reference to an object. The original may be moved to another place in the file system, without breaking the link. The
operating system stores several pieces of information about the original in theresource fork of the alias file. Examples of the information used to locate the original are:
* path
* file ID
* directory ID
* name
* file sizeSince any of these properties can change behind the OS' back as a result of user activity, various search algorithms are used to find the most plausible target. This fault-tolerance sets the alias apart from similar functions in some other operating systems, such as the
Unix symbolic link or theMicrosoft Windows shortcut, at the expense of increased complexity. For example, an application can be moved from one directory to another, but an existing alias would still launch the same application when double-clicked.Aliases are similar in operation to shadows in the graphical
Workplace Shell of theOS/2 operating system.Distinguishing marks
In System 7 through Mac OS 8.1, aliases distinguished themselves visually to the user by the fact that their file names were in italics. To accommodate languages that don't have italics (such as Japanese), in Mac OS 8.5 another distinguishing mark was added, badging with an "alias arrow" - a black arrow with a small white border - similar to that used for shortcuts in Microsoft Windows.
In
Mac OS X , the filenames of aliases are not italicized, but the arrow badge remains.The system level alias manager keeps track of the alias and the original even if the original is moved.
Managing aliases
In System 7, the only way to create an alias was to select the original and choose "Make Alias" from the "File" menu. An alias, with the same name and " alias" appended would then be created in the same folder. In later versions, it became possible to create aliases by
drag-and-drop , while holding down the command and option modifier keys.Mac OS 8.5 added a feature for re-connecting aliases that had been broken for one reason or another (when the simple search algorithms failed to find a reliable replacement).
References
External links and References
* [http://developer.apple.com/documentation/mac/Files/Files-340.html Alias Manager] —
Inside Macintosh developer documentation
* [http://www.upenn.edu/computing/printout/archive/v08/5/aliases.html System 7 aliases] — Article about System 7 aliases, from1992
* [http://Yost.com/computers/aliaslinks aliaslinks] proposal by Dave Yost - an enhancement over alias files
Wikimedia Foundation. 2010.