Re: Source Text of Script Objects
Re: Source Text of Script Objects
- Subject: Re: Source Text of Script Objects
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 30 Dec 2001 11:11:50 -0800
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
>
From: "Jason W. Bruce" <email@hidden>
>
Date: Sun, 30 Dec 2001 12:28:50 +0000
>
To: <email@hidden>
>
Cc: <email@hidden>
>
Subject: Re: Source Text of Script Objects
>
>
Haven't been following this to closely, but maybe this is what you're after:
>
>
bar as record for a script object
>
>
me as record for an entire script
>
>
Jason Bruce
>
>
> Message: 4
>
> Date: Sat, 29 Dec 2001 16:35:56 -0800
>
> Subject: Source Text of Script Objects
>
> From: Paul Berkowitz <email@hidden>
>
> To: Applescript-Users <email@hidden>
>
>
>
> Does anyone know how to get the source text of a script object - in
>
> applescript?
>
>
>
> --
>
> Paul Berkowitz
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.