<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Creator_code</id>
	<title>Creator code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Creator_code"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Creator_code&amp;action=history"/>
	<updated>2026-05-04T15:37:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Creator_code&amp;diff=108503&amp;oldid=prev</id>
		<title>imported&gt;Citation bot: Added publisher. | Use this bot. Report bugs. | Suggested by Abductive | Category:Macintosh operating systems | #UCB_Category 2/27</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Creator_code&amp;diff=108503&amp;oldid=prev"/>
		<updated>2024-04-18T02:21:46Z</updated>

		<summary type="html">&lt;p&gt;Added publisher. | &lt;a href=&quot;/wiki143/index.php?title=En:WP:UCB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;En:WP:UCB (page does not exist)&quot;&gt;Use this bot&lt;/a&gt;. &lt;a href=&quot;/wiki143/index.php?title=En:WP:DBUG&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;En:WP:DBUG (page does not exist)&quot;&gt;Report bugs&lt;/a&gt;. | Suggested by Abductive | &lt;a href=&quot;/wiki143/index.php?title=Category:Macintosh_operating_systems&quot; title=&quot;Category:Macintosh operating systems&quot;&gt;Category:Macintosh operating systems&lt;/a&gt; | #UCB_Category 2/27&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{original research|date=January 2019}}&lt;br /&gt;
[[Image:Mac OS window with four different MP3 files.png|frame|right|The creator code is responsible for linking the file and the program that will launch when the file is double-clicked. This Mac OS window show four files of the same [[type code]] ({{mono|MP3}}), but with four different creator codes: {{mono|Audn}} ([[Audion (software)|Audion]]), {{mono|hook}} ([[iTunes]]), {{mono|SCPL}} ([[SoundApp]]) and {{mono|NSWa}} ([[Winamp]]).]]&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;creator code&amp;#039;&amp;#039;&amp;#039; is a mechanism introduced in the [[classic Mac OS]] to link a data file to the [[software|application program]] which created it. The similar [[type code]] held the file type, like &amp;quot;TEXT&amp;quot;. Together, the type and creator indicated what application should be used to open a file, similar to (but richer than) the [[file extension]]s in other operating systems.&lt;br /&gt;
&lt;br /&gt;
Creator codes are four-byte [[OSType]]s. They allow applications to launch and open a file whenever any of their associated files is double-clicked. Creator codes could be any four-byte value, but were usually chosen so that their [[ASCII]] representation formed a word or acronym. For example, the creator code of the [[HyperCard]] application and its associated &amp;quot;stacks&amp;quot; is represented in [[ASCII]] as {{mono|WILD}}, from the application&amp;#039;s original name of WildCard.  Occasionally they represented [[inside joke]]s. For instance, the &amp;#039;&amp;#039;[[Marathon (video game)|Marathon]]&amp;#039;&amp;#039; computer game had a creator code of {{mono|26.2}} (the approximate length, in miles, of a [[marathon]]) and &amp;#039;&amp;#039;[[Marathon 2: Durandal]]&amp;#039;&amp;#039; had a creator code of {{mono|52.4}}.&lt;br /&gt;
&lt;br /&gt;
The binding are stored inside the [[resource fork]] of the application as [[BNDL]] and [[fref]] resources. These resources maintained the creator code as well as the association with each [[type code]] and [[icon (computing)|icon]]. The OS collected this data from the files when they were copied between mediums, thereby building up the list of associations and icons as software was installed onto the machine. Periodically this &amp;quot;desktop database&amp;quot; would become corrupted, and had to be fixed by &amp;quot;rebuilding the desktop database.&amp;quot;&amp;lt;ref&amp;gt;[http://support.apple.com/kb/HT2344?viewlocale=en_US&amp;amp;locale=en_US &amp;quot;Mac OS: Rebuilding Desktop File and icon recovery&amp;quot;], Apple&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The key difference between extensions and Apple&amp;#039;s system is that file type and file ownership bindings are kept distinct. This allows files to be written of the same type - TEXT say - by different applications. Although any application can open anyone else&amp;#039;s TEXT file, by default, opening the file will open the original application that created it. With the extensions approach, this distinction is lost - all files with a .txt extension will be mapped to a single text editing application of the user&amp;#039;s choosing. A more obvious advantage of this approach is allowing for [[double click]] launching of specialized editors for more complex but common file types, like .csv or .html. This can also represent a disadvantage as in the illustration above, where double clicking the four mp3 files would launch and play the files in four different music applications instead of queuing them in the user&amp;#039;s preferred player application.&lt;br /&gt;
&lt;br /&gt;
macOS retains creator codes, but supports extensions as well.  However, beginning with [[Mac OS X Snow Leopard]], creator codes are ignored by the operating system.  Creator codes have been internally superseded by Apple&amp;#039;s [[Uniform Type Identifier]] scheme, which manages application and file type identification as well as type codes, creator codes and file extensions.&lt;br /&gt;
&lt;br /&gt;
To avoid conflicts, Apple maintained a database of creator codes in use. Developers could fill out an online form to register their codes.&amp;lt;ref&amp;gt;{{cite book|url=https://books.google.com/books?id=p3waZFMr97IC&amp;amp;pg=PA287|title=Mac OSX Programming|isbn=9780735711686|last1=Sydow|first1=Dan Parks|year=2002|publisher=New Riders }}&amp;lt;/ref&amp;gt; Apple reserves codes containing all lower-case ASCII characters for its own use.&lt;br /&gt;
&lt;br /&gt;
Creator codes are not readily accessible for users to manipulate, although they can be viewed and changed with certain software, most notably the macOS command line tools &amp;#039;&amp;#039;GetFileInfo&amp;#039;&amp;#039; and &amp;#039;&amp;#039;SetFile&amp;#039;&amp;#039; which are installed as part of the developer tools into &amp;#039;&amp;#039;/Developer/Tools&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Type code]]&lt;br /&gt;
* [[Uniform Type Identifier]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://arstechnica.com/staff/fatbits/2009/09/metadata-madness.ars How application binding policy changed in Snow Leopard]&lt;br /&gt;
* {{cite web |url= http://www.lacikam.co.il/tcdb/ |title= Type/Creator Database |date= Aug 2003|last1=Szekely|first1=Ilan |accessdate=2017-02-11 |quote=The developer acknowledges that since the information was manually accumulated from various sources, some not registered with Apple, from various apps and their files, validity is NOT guaranteed|type=Excel }}&lt;br /&gt;
{{Mac OS}}&lt;br /&gt;
[[Category:Macintosh operating systems]]&lt;br /&gt;
[[Category:Metadata]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Citation bot</name></author>
	</entry>
</feed>