Re: Dialog Director - Quit action
Re: Dialog Director - Quit action
- Subject: Re: Dialog Director - Quit action
- From: David Glass <email@hidden>
- Date: Fri, 25 Oct 2002 21:19:39 -0700
On 10/25/02 17:00, "Duncan Cowan" <email@hidden> wrote:
>
I've been playing with Dialog director in OS 9.2.1 - to create an "output"
>
preferences dialogue.
>
However I was having trouble getting the script to quit if the cancel button
>
was returned.
>
Reading the dictionary, I noticed that the "push button" class has an
>
"action" property that is triggered when the button is pressed.
>
>
Excellent! or so I thought....
>
Being a simple fellow I assigned the term "Quit" to my cancel button and
>
compiled.
>
Suddenly Script Editor (1.6) was asking if I wanted to save my script before
>
quitting!
>
This can't be the expected result . . . can it? =)
>
Oh . . Smile does the same thing . . .
>
>
Has anyone who uses DD have any ideas on what I'm doing incorrectly?
>
I've managed to solve the problem of quitting the script in another way so
>
it's merely a point of interest now anyway.
>
>
{class:push button, bounds:{10, 140, 75, 160}, name:"Cancel", action:
>
quit},
>
I'm going to go out on a limb and guess that it only asks this if you run
the script from the editor. IOW, it doesn't ask to save the script when you
run the script on its own, does it?
It sounds like the editor is receiving the 'quit' command rather than the
script (which may or may not be the desired behavior when running a script
*within* the editor, as opposed to as a standalone script/applet).
--
David Glass
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.