File association
In
Associations and verbs
A single file extension may have several associations for performing various actions, also known as verbs. Some of the common verbs are:
- open to open a file
- edit to open a file for editing
- print to print a file
A picture, for example, may be associated with these words so that open opens the picture in an image viewer, edit opens up an image editing program and print sends the picture to a printer.
Implementations
Most
Additional actions such as print are usually accessed via a right-click
Microsoft Windows
The Microsoft Windows series of operating systems, beginning with Windows 3.x supports file extension-based associations.[1] Associations are stored in registry[2] as sets of verbs for each file extension. Older versions supported open associations stored in WIN.INI.
File associations can be displayed and edited using the assoc
command and with the help of the ftype
command it is possible to create association between file type and application which will open files of this type.[3][4]
The Windows shell invokes file association actions through COM, drag and drop, command line calls or through Dynamic Data Exchange. Advanced features of Microsoft Windows file associations included manually defining a new file extension with any number of associated actions, a primary default action, showing extensions only for specific file types, customizing the file type icon and description and customizing associated MIME type and their handling (how to handle file types for files downloaded or directly opened from within the Internet Explorer browser). The ability to configure advanced file association functionality, however, was removed in Windows Vista and later operating systems.
Linux
Mac OS
The
Application bundles in macOS declare supported file types in their Info.plist file. For each of these specified types, a
The operating system uses this information to generate a list of applications which are able to open each type. Within Finder (software) each file will be identified with a UTI and open with the default application for that type. The user may also select from a list of other applications which support the type.
Using this system, types are also associated with data for which there is no file name or the file extension is missing. This includes pasteboard data and data streaming over a protocol such as HTTP where a MIME type has been given.
See also
References
- ^ "Windows 3.x Features".
- ^ HKEY_CLASSES_ROOT Key
- ^ Microsoft TechNet Assoc article on
assoc
- ^ Microsoft TechNet Ftype article on
ftype
- ^ "Association between MIME types and applications". specifications.freedesktop.org. Retrieved 2 December 2024.
- ^ Mac OS X Reference Library - Uniform Type Identifier Concepts
Further reading
- "Implementing a Custom File Format". Microsoft Developer Network Library. Microsoft Corporation. 9 November 2010. Retrieved 5 December 2010.
- "File Associations". KDE Documentation. KDE. 11 November 2016. Retrieved 30 May 2020.