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: Paul Berkowitz <email@hidden>
- Date: Mon, 15 Mar 2004 07:28:44 -0800
On 3/15/04 7:09 AM, "Bill Cheeseman" <email@hidden> wrote:
>
on 2004-03-15 7:00 AM, Walter Ian Kaye at email@hidden
>
wrote:
>
>
> At 06:11a -0500 03/15/2004, Bill Cheeseman didst inscribe upon an
>
> electronic papyrus:
>
>
>
>> I believe we all concluded quite a long time ago that a value assigned to a
>
>> global variable does persist across invocations. I was an unbeliever until a
>
>> script was posted that proved it. I haven't tried it in Mac OS X.
>
>
>
> Did we determine if it was just when declared at the top level, or
>
> also when declared in handlers without a top-level script? I don't
>
> remember any words specifying it. We might have to test again, unless
>
> someone remembers...
>
>
I'm too old to remember things I haven't used in the last 5 minutes or
>
so....
Even an undeclared variable defined in the top level of a script persists
across invocations, not that you can do anything with it until it's referred
to defined again, of course (which in this case means defined again). But
people concerned with file size and files in locations where they should not
be modified need to know about this, so they can either declare all their
top-level variables explicitly as local, or move everything to a handler
where they will be local by default and won't persist.
--
Paul Berkowitz
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.