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 02:20:46 +1300
on Mon, 13 Jan 2003 23:35:28 +1100 Steven Angier wrote:
>
> 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
>
>
That is very intriguing, but it doesn't work on my machine -- that is if I
>
load the script file from another script, it doesn't contain foo. Seems like
>
some AppleScript is getting confused somehow?
me too, alias pStr doesn't grow as I'd expect and it's foo is persistent
over restart, AS 1.3.7 & Smile. I think this is weirder yet...
property pStr : (choose file) as string
on _set(x, y)
set scpt to load script alias (my pStr)
set scpt's a to x
set scpt's b to y
end _set
to _get()
(load script my pStr)'s {a, b}
end _get
_set("look", " ma")
_get() as string
--> "look ma"
_____________________________ 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.