Re: Entourage X script keeps growing
Re: Entourage X script keeps growing
- Subject: Re: Entourage X script keeps growing
- From: Jon Pugh <email@hidden>
- Date: Tue, 13 Aug 2002 15:11:57 -0700
At 8:48 AM -0700 8/13/02, Christopher Slye wrote:
>
It doesn't use any
>
properties -- not intentionally anyway -- and I thought that was the only
>
reason for a script to be remembering its variables.
It turns out that globals are essentially properties, and all variables outside of handlers are global. This means that you have globals, since you have no explicit handlers:
>
set MsgList to {}
>
set DigestOut to {} -- The entire digest
>
set SubjectList to {} -- List for Summary subject
>
set MsgNumber to 0 -- The message counter
The simplest solution is to create an explicit run handler instead of using an implicit run handler.
Jon
_______________________________________________
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.