• 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: "Arthur J. Knapp" <email@hidden>
  • Date: Wed, 14 Aug 2002 14:16:24 -0400

> Date: Tue, 13 Aug 2002 08:48:35 -0700
> From: Christopher Slye <email@hidden>
> Subject: Entourage X script keeps growing

> ... script I wrote to create email
> digests. I continue to be perplexed by its tendency to grow -- and by that I
> mean the actual script file changes in size. When freshly-saved, the script
> is about 20 KB or so, but I've seen it end up as large as 1 MB. Sometimes
> the size doesn't change much, but the modification date always updates.

[snip script]

Variables defined at the top-level of a script do seem to be saved, (which
is pretty ridiculous, given that you cannot then access them when re-running
the script). Actually, I don't know why memory seems to be dynamic, I only
know that it only occurs with top-level variables.

Simply throw everything you do into handlers:

Main()

on Main()
-- stuff

Variables created in handlers unquestionably get "cleaned up" after
the handler has run it's course.





P.S. After a week of headache and no Internet access, I am finally in
my company's new downtown Philadelphia office. Would anyone in the
area like to "do lunch"? ;-)



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.

  • Follow-Ups:
    • Re: Entourage X script keeps growing
      • From: John W Baxter <email@hidden>
  • Prev by Date: Re: do shell script with administrator privileges & shell commands
  • Next by Date: Re: Memory
  • Previous by thread: Re: Entourage X script keeps growing
  • Next by thread: Re: Entourage X script keeps growing
  • Index(es):
    • Date
    • Thread