Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
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