Re: changing the "open with application" value for a file
Re: changing the "open with application" value for a file
- Subject: Re: changing the "open with application" value for a file
- From: Luther Fuller <email@hidden>
- Date: Sat, 23 May 2009 17:22:13 -0500
On May 23, 2009, at 4:49 PM, John C. Welch wrote:
On 5/23/09 4:39 PM, "email@hidden" <email@hidden> wrote:
If the file is created on a Mac application, the creator type and
file
type are automatically generated by the mac application.
Incorrect. A mac application may or may not create the creator and
file type
metadata. It is no longer a requirement, and in fact, using other
identification metadata such as UTI's is being promoted over the
older File
Type and creator codes, with good reason.
Which suggests that using
do shell script "mdls "&filePath
is the way to go to get info about a file. For example ...
kMDItemContentType = "public.mp3"
kMDItemFSCreatorCode = ""
kMDItemFSTypeCode = ""
kMDItemKind = "MP3 Audio"
or
kMDItemContentType = "public.aiff-audio"
kMDItemFSCreatorCode = "hook"
kMDItemFSTypeCode = "AIFF"
kMDItemKind = "AIFF Audio File"
or
kMDItemContentType = "public.aifc-audio"
kMDItemFSCreatorCode = "hook"
kMDItemFSTypeCode = "AIFF"
kMDItemKind = "AIFC Audio File"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden