• 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: Some oddball Q's about script running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Some oddball Q's about script running
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: FASTEST Record Find with FileMaker Pro 7?
  • Next by Date: Re: Some oddball Q's about script running
  • Previous by thread: launching services..
  • Next by thread: Re: Some oddball Q's about script running
  • Index(es):
    • Date
    • Thread