Re: Stateful variables
Re: Stateful variables
- Subject: Re: Stateful variables
- From: Doug McNutt <email@hidden>
- Date: Sun, 13 Aug 2006 11:37:04 -0600
At 18:51 +1000 8/13/06, Devraj Mukherjee wrote:
>I am new to AppleScript but have been programming with Objective-C.
That's almost the worst possible place to come from. Plain old C experience makes AppleScript nearly impossible.
>Part of my problem scripting issues require me to keep stateful
>information between the execution of two AppleScript executions, is
>this possible using AppleScript? Much like session variables in web
>based scripting languages
AppleScript automatically saves variables declared as "properties". Actually, it seems to save all global variables in a similar way but the documentation doesn't make that very clear.
But. If you run a script from Script Editor it doesn't honor old property values, reverting them to their definitions in the code. If you save "as application" it works. It is commonly believed that the data are stored within the AppleScript application because the apps get a new modification date every time they are run but I know of nothing that declares that to be TRUTH.
And, somehow named properties and can get confused between what should be private namespaces. Applications can use names that you happen to have chosen and mess things up. People tend to include an underbar character to help with that.
I'm sure you will get a less biased answer:
--
Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
_______________________________________________
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