Re: Some oddball Q's about script running
Re: Some oddball Q's about script running
- Subject: Re: Some oddball Q's about script running
- From: Axel Luttgens <email@hidden>
- Date: Wed, 09 Mar 2005 17:18:15 +0100
Gnarlodious wrote (some times ago):
[...]
Q2:
This is some mysterious behavior. Say I have an application script starting
like this:
property prevWIP : missing value
set statusString to ""
if prevWIP is missing value then set statusString to "script edited"
etc
When I repeatedly run this script by doubleclicking it the statusString
variable does as expected (gets set to "") HOWEVER when I use "run script"
from a calling scriot the statusString variable does not get set to "".
Can anyone explain that oddity?
Not sure to fully understand your description.
Does your "etc" part set prevWIP to some value?
I ask, because if this isn't the case, statusString should always
receive value "script edited" (as prevWIP is always missing value), not "".
This said, I suspect you are facing the recompilation implied by the
"run script" command: it loads the script, compile it and execute it.
So, prevWIP will always receive its initial value (aka missing value).
Hope I managed to be clear...
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden