File Types and Creator Codes
J. Landman Gay
jacque at hyperactivesw.com
Sat Sep 26 00:07:33 EDT 2009
Sarah Reichelt wrote:
> Imagine you have an app that creates HTML files.
> You might want to just let the default browser handle them, so you
> would need a UTI with "public.html"
> If you wanted these files to open your app when double-clicked (even
> though they were standard HTML files that would work in a browser),
> you would need to set up your own UTI of say
> "com.mydomain.myapp.web-page".
> The same app might also produce text files, so you would also need a
> UTI with "com.mydomain.myapp.plain-text".
>
> The bundle identifier looks to be in the same sort of format, but you
> an only have one per app, and I don't think you would want it to be
> something completely general like "public.html".
I looked at the plist that the SB generates. There are identifiers at
the bottom, and I think we could just add our own to these:
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.runrev.revolution.stack</string>
<key>UTTypeDescription</key>
<string>Revolution Stack</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.macos.ostype</key>
<string>RSTK</string>
<key>public.filename-extension</key>
<array>
<string>rev</string>
</array>
</dict>
</dict>
</array>
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list