Re: "Save changes to script" when it terminates?
Re: "Save changes to script" when it terminates?
- Subject: Re: "Save changes to script" when it terminates?
- From: Chap Harrison <email@hidden>
- Date: Sat, 13 Mar 2004 11:23:44 -0600
On Mar 13, 2004, at 4:29 AM, Nigel Garvey wrote:
If you need global behaviour - where either it's inconvenient to keep
passing parameters or the handlers need to be able to change the values
of "top level" variables - you could put the entire working code of the
script into a script object in a handler. The "globals" would then have
to be properties of that script object:
[snip]
Thanks, Nigel -- this does exactly what I wanted. Some of the
"globals" had to be modified by the script or by handlers. And thanks
to Paul and Michelle for your replies, too.
At some point I expect I'll discover the value of having a script
preserve state across launches, but so far it has only bitten me, and
it's good to know how to avoid it.
Chap
_______________________________________________
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.