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: kai <email@hidden>
- Date: Mon, 8 Aug 2005 00:34:49 +0100
On 7 Aug 2005, at 22:16, Gil Dawson wrote:
Hi, kai--
Hi, Gil.
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".)
I think the option you want, in that case, is "Script".
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?
The test script works fine here too, when run as an application (or
from a script editor), Gil. To replicate the behaviour mentioned, try
saving it as a "Script" and then running it from the Script Menu. For
more details about the Script Menu, see:
http://www.apple.com/applescript/scriptmenu/
I placed the saved script in the User Scripts Folder (which can also
be opened from the Script Menu). The issue shows up when the script
is run by selecting its name from the Script Menu.
P.S. - How can I tell which AppleScript version is running on my
machine?
Just run this snippet:
-------------
AppleScript's version
--> "1.10" (obviously depending on, well... AppleScript's version) ;-)
-------------
Thanks for your reply. :-)
---
kai
_______________________________________________
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