Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

File association

From Wikipedia, the free encyclopedia
(Redirected fromApplication binding)

Incomputing, afile association associates a file with anapplication capable of opening that file. More commonly, a file association associates a class of files (usually determined by theirfilename extension, such as.txt) with a corresponding application (such as atext editor).

Associations and verbs

[edit]

A single file extension may have several associations for performing various actions, also known asverbs. Some of the common verbs are:

  • open to open a file
  • edit to open a file for editing
  • print to print a file

Apicture, for example, may be associated with these words so thatopen opens the picture in animage viewer,edit opens up animage editing program andprint sends the picture to a printer.

Implementations

[edit]

Mostoperating systems support file associations in some form or the other. For example, opening a file from a file manager usually invokes theopen verb in order to open the file with its associated application. The "open" verb invokes the associatedapplication program, which reads the file or document and presents it to the user for viewing, and possibly for editing or other action.

Additional actions such asprint are usually accessed via a right-clickcontext menu. A mechanism for modifying associations is also usually present. An example for this is theOpen With option in theWindows Shell.

Microsoft Windows

[edit]

TheMicrosoft Windows series ofoperating systems, beginning withWindows 3.x supports file extension-based associations.[1] Associations are stored inregistry[2] as sets of verbs for each file extension. Older versions supportedopen associations stored inWIN.INI.File associations can be displayed and edited using theassoccommand and with the help of theftype 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 throughCOM, drag and drop, command line calls or throughDynamic Data Exchange. Advanced features of Microsoft Windows file associations included manually defining a new file extension with any number of associated actions, a primarydefault action, showing extensions only for specific file types, customizing the file type icon and description and customizing associatedMIME type and their handling (how to handle file types for files downloaded or directly opened from within theInternet Explorer browser). The ability to configure advanced file association functionality, however, was removed inWindows Vista and later operating systems.

Linux

[edit]

Linux-based GUIs, such asKDE andGNOME, supportMIME type-based associations.[citation needed] For example, the MIME typetext/plain would be associated with atext editor. This association is generally accomplished through thefreedesktop.org Shared MIME database (for determining the MIME type of a file) and theDesktop Entry specification (for determining which application to open the file with).[5]

Mac OS

[edit]

TheClassic Mac OS usedtype codes andcreator codes to associate each file with its corresponding application, regardless of file extension. The more recentmacOS also supports file extension–based associations.

Application bundles in macOS declare supported file types in their Info.plist file. For each of these specified types, aUniform Type Identifier is given, along with a list of 'tags' which define how a file or data of this type could be identified. For example, theJPEG type is defined with a UTI of 'public.jpeg', and tagged with the extensions 'jpg' and 'jpeg', theMIME type 'image/jpeg' and thetype code 'JPEG'.[6]

The operating system uses this information to generate a list of applications which are able to open each type. WithinFinder (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 asHTTP where a MIME type has been given.

See also

[edit]

References

[edit]
  1. ^"Windows 3.x Features".
  2. ^HKEY_CLASSES_ROOT Key
  3. ^Microsoft TechNet Assoc article onassoc
  4. ^Microsoft TechNet Ftype article onftype
  5. ^"Association between MIME types and applications".specifications.freedesktop.org. Retrieved2 December 2024.
  6. ^Mac OS X Reference Library - Uniform Type Identifier Concepts

Further reading

[edit]
  1. "Implementing a Custom File Format".Microsoft Developer Network Library. Microsoft Corporation. 9 November 2010. Retrieved5 December 2010.
  2. "File Associations".KDE Documentation.KDE. 11 November 2016. Retrieved30 May 2020.[permanent dead link]
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=File_association&oldid=1306440282"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp