Re: Source Text of Script Objects
Re: Source Text of Script Objects
- Subject: Re: Source Text of Script Objects
- From: "Jason W. Bruce" <email@hidden>
- Date: Sun, 30 Dec 2001 16:05:22 +0000
Paul,
I'm still on 9.04, so my result is likely the result of an invisible
coercion, either Jon's or Akua.
Jason Bruce
>
Well, thanks, Jason, but it doesn't work as I tried it.
>
>
Script Debugger is able to get a script handler from a script document, and
>
its class is <<script>>. When I try this:
>
>
set md to script handler "makedaily" of document 2
>
>
set mdText to md as record
>
>
I get an error "Can't make handler MakeDaily into a record".
>
>
Similarly if I load the whole script and try that:
>
>
>
set ciF to file spec of document 2
>
-- file "Data HD:Documents:Microsoft User Data:Entourage Script Menu
>
Items:Calendar Import into 2001"
>
>
set ci to load script ciF
>
-- << script>>
>
>
set ciText to ci as record
>
-- ERROR: "Can't make <<script>> into a record"
>
>
>
Are you sure about this? Whose "record" is this that you have got somewhere?
>
Could it perhaps be something other than an AppleScript record?
>
>
>
--
>
Paul Berkowitz