Re: Creator Types in OS X...
Re: Creator Types in OS X...
- Subject: Re: Creator Types in OS X...
- From: garbanzito <email@hidden>
- Date: Thu, 18 Jul 2002 10:46:42 -0600
at 2002 07 17, 15:54 -0700, they whom i call Chris Espinosa wrote:
First, not all applications on X have creator
types, so depending on what you're doing and what apps you want to use,
this may not be a useful exercise at all. On Mac OS X, most
applications have a "bundle identifier" that you can use instead of the
creator type, e.g.
tell application "Finder"
get application file id "com.apple.mail"
end tell
interesting -- how does one determine the bundle identifier?
for many apps it's obvious from the plist in the preferences
folder, and in fact the plist gives clues that would
otherwise be impossible to deduce, since sometimes the
identifier doesn't use spaces or version numbers the same
way that the application file does.. (e.g.
"com.apple.ImageCapture2", not "com.apple.Image Capture"..)
i also tried a number of variations on
"com.macromedia.freehand", but couldn't figure out the
identifier for FreeHand 10.
...
i do note that one can leave Finder out of it and use a
plain file object and its "info for" record:
set some_file to choose file
file creator of (info for some_file)
like creator type in Finder, this will work whether the
app's creator is stored in the file metadata or the
info.plist inside the app bundle. if the creator isn't set,
as is the case for several Mac OS X apps, it returns "????".
--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.