Re: Script Menu in Tiger: non-persistent property bug?
Re: Script Menu in Tiger: non-persistent property bug?
- Subject: Re: Script Menu in Tiger: non-persistent property bug?
- From: Gil Dawson <email@hidden>
- Date: Sun, 7 Aug 2005 14:16:31 -0700
Hi, kai--
Maybe I'm not doing it right...
1. I typed the following script into a Smile script window:
property n : 1
display dialog "Test #" & n
set n to n + 1
if n < 4 then n
2. I then "Save as..."d as an "Application" on the desktop. (Smile
didn't offer "compiled script". Its choices were "Script",
"Application", and "Stay-open Application".)
3. I then double-clicked on the new icon on my desktop. A dialog
box opened and I clicked "OK". The application quit.
4. I repeated #3 several more times. The "Test #" number kept on
incrementing. The last test I ran it was at #8.
Am I not doing this right?
I'm using Smile 2.6.9 and MacOS 10.4.2.
--Gil
P.S. - How can I tell which AppleScript version is running on my machine?
At 1:06 PM +0100 8/7/05, kai wrote:
To demonstrate the problem, I've distilled it down to the following snippet:
--------------
property n : 1
display dialog "Test #" & n
set n to n + 1
if n < 4 then n
--------------
This should be saved as a compiled script and then run more than 3
times from the Script Menu. The first 3 runs are successful here,
incrementing the value of the property (n) each time. After that,
the dialog sticks on "Test #3" (since, from the third run, the
conditional statement returns no value).
For the record, I'm testing in OS 10.4.2 / AS1.10 (system upgrade,
not clean install).
_______________________________________________
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