Re: resetting script between runs
Re: resetting script between runs
- Subject: Re: resetting script between runs
- From: KOENIG Yvan <email@hidden>
- Date: Mon, 4 Jun 2007 13:31:04 +0200
Le 4 juin 07 à 12:36:33, Håvard Graudo a écrit :
Den 4. jun. 2007 kl. 12.03 skrev KOENIG Yvan:
Le 4 juin 07 à 11:09:10, Håvard Graudo a écrit :
How do I remove garbage from a script between runs?
I have a fairly complex script that sometimes fails. Freshly
saved as an application it is 308k large. After a run it may be
544k.
Problem is it sometimes fails, and I cannot debug:
If I open it in an editor and just recompile it will always work
again.
If it fails contantly as an application and I just open and run
it directly from an editor it will also work.
I think I must reset something between runs, but what? Are there
anything else than properties that should be saved between runs?
My 4 properties are three booleans (ie. debug: false) + a static
string (path to a logfile).
I have three globals. Globals are not saved between runs, right?
Hello
You make me think that I was thinking wrongly.
So I wrote a huge test script:
global laGlobale
set laGlobale to (choose file) as text
I checked the script file's contents and saw that the selected path
was stored in it.
So, it seems that globals are saved in the file.
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden