• 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: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)


  • Subject: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 26 Mar 2010 11:33:34 -0500

You might want to try this script ...

set itemAlias to alias "OS_X:Users:lutherfuller:Desktop:untitled folder 2" -- for example
tell application "Finder"
if (class of item itemAlias) is folder then beep 2 -- folder = «class cfol»
(class of item itemAlias) as text
display dialog the result
end tell

Where ...
class of item itemAlias --> «class cfol»

In English, «class cfol» compiles to folder .
In another language, it compiles to something else.
There is no need to use (class of item itemAlias) as text , and it may give you trouble if you want to internationalize your script.
What does «class cfol» compile to on your (non-English) Mac?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
      • From: Yvan KOENIG <email@hidden>
References: 
 >Rep: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Back and forth between Posix and HFS paths
  • Next by Date: Re: Back and forth between Posix and HFS paths
  • Previous by thread: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by thread: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Index(es):
    • Date
    • Thread