Re: resetting script between runs
Re: resetting script between runs
- Subject: Re: resetting script between runs
- From: Luther Fuller <email@hidden>
- Date: Mon, 4 Jun 2007 09:22:53 -0500
An even better way to avoid globals is to use this run handler ...
on run
try
my main()
on error errText number errNr
if errNr = -128 then
return
else if errNr = -2700 then
my showInstruction(errText)
else
my showError(errText, errNr)
end if
end try
end run
which simply has no variables, global or otherwise.
_______________________________________________
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