• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Entourage X script keeps growing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Entourage X script keeps growing (From: Christopher Slye <email@hidden>)

  • Prev by Date: Re: Timing problem.
  • Next by Date: do shell script with administrator privileges & shell commands
  • Previous by thread: Entourage X script keeps growing
  • Next by thread: Re: Entourage X script keeps growing
  • Index(es):
    • Date
    • Thread