Re: Saving handler-defined scripts without source code
Re: Saving handler-defined scripts without source code
- Subject: Re: Saving handler-defined scripts without source code
- From: Andy Wylie <email@hidden>
- Date: Tue, 14 Jan 2003 00:07:37 +1300
on Sat, 11 Jan 2003 17:05:28 +1100 Steven Angier wrote:
>
> In my example the file bloat is not due to the handler-contained
>
>script's parent scope being stored, but to the actual source code of the
>
>handler-contained script being stored. I guess that the compiler doesn't dig
>
>more than one level down when generating run-only code.
>
>
Perhaps this what you're looking for Steve, load from a blank script file
and set something to an undefined variable...
set pStr to (choose file) as string
set scpt to load script alias pStr
set scpt's foo to "anything"
store script scpt in alias pStr replacing yes
(load script alias pStr)'s foo
_____________________________ Andy
_______________________________________________
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.