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: "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