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


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

On Mar 26, 2010, at 3:25 PM, Yvan KOENIG wrote:

Le 26 mars 2010 à 17:33, Luther Fuller a écrit :

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?

I think we are confused.
Into AppleScript Editor (or Smile), I type ...

tell application "finder"
«class cfol»
end tell

I then choose Compile from the Script menu, obtaining ...

tell application "Finder"
folder
end tell

In English, «class cfol» has compiled to folder .
What do you get in French?

I tried your script and got the same result (in English).

 _______________________________________________
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: 
 >Rep: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Yvan KOENIG <email@hidden>)
 >Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Luther Fuller <email@hidden>)
 >Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by Date: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Previous by thread: Re: 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