• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: changing the "open with application" value for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: changing the "open with application" value for a file (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: changing the "open with application" value for a file
  • Next by Date: Re: Facespan 5 Development Suspended
  • Previous by thread: Re: changing the "open with application" value for a file
  • Next by thread: Re: changing the "open with application" value for a file
  • Index(es):
    • Date
    • Thread