• 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: Kind of HTML files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kind of HTML files


  • Subject: Re: Kind of HTML files
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 18 Oct 2006 10:13:08 -0700

On Oct 18, 2006, at 7:56 AM, Yvan KOENIG wrote:


The kind property in Finder's item class contains a localised description. If you're on 10.4, use System Events or Standard Additions to check the file's uniform type identifer, e.g.:


tell application "System Events"
get every file of someFolder whose type identifier is "public.html"
end


For more info on UTIs, see <http://developer.apple.com/macosx/uniformtypeidentifiers.html > and the follow the links at the bottom of the page.

If you're not on 10.4, I think you'll need to make up a list of all possible name extensions and test against that.

I assumes that what I will write now is mainly to Chris Nebel's attention.

Just as long as you don't start referring to me as "he-who-shall-not- be-named" in order to *not* attract my attention.


Would it be difficult to add type identifier to the properties treated by the Finder so it would be easier to deal with this "modern identifier" without localization oddities? With such a formula, the localized kind would be available when localisation is required and the universal type identifier would be available when needed.

Is there any reason you want this in Finder specifically? Would adding the localized kind to System Events work just as well?



--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Kind of HTML files (From: has <email@hidden>)
 >Re: Kind of HTML files (From: Yvan KOENIG <email@hidden>)
 >Re: Kind of HTML files (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Comprehensive Applescript Reference Book (Re: Applescript equivalent of $0 in shell script)
  • Next by Date: Re: App and droplet
  • Previous by thread: Re: Kind of HTML files
  • Next by thread: Re: Kind of HTML files
  • Index(es):
    • Date
    • Thread