• 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: "Stockly, Ed" <email@hidden>
  • Date: Fri, 26 Mar 2010 13:46:45 -0700
  • Thread-topic: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)

>>>> "Impossible de transformer «class cfol» en type number."

On my American English system I get this:

     Can't make «class cfol» into type number.

It took me a while to figure the purpose of the:

classOf * 1

Then I realized it was only to get a representation of the raw apple event
in the error message.

If you have Script Debugger you can reveal raw (chevron) codes with a View
menu item choice.



set itemalias to «event earsffdr» «constant afdrapps»
tell «class capp» "Finder"
    set classOf to (get class of «class cobj» itemalias)
    class of "folder" = «class cfol»
    try
        classOf * 1
    on error errMsg
        «event sysodlog» "" & errMsg
        return errMsg
    end try
end tell


(I think there¹s probably a way to do that in Smile too)

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

  • Prev by Date: Re: 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: 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