Re: Dialog Director - Quit action
Re: Dialog Director - Quit action
- Subject: Re: Dialog Director - Quit action
- From: has <email@hidden>
- Date: Sat, 26 Oct 2002 16:38:30 +0100
Duncan Cowan 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.
In pseudocode:
on MAIN_LOOP()
repeat
poll the dialog until something clicked
if thing clicked is not the Cancel button
do lots of stuff here
else
return -- exit main loop
end
end
end MAIN_LOOP
on run
initialise()
MAIN_LOOP()
cleanup()
return -- exit script
end run
As for the quit event, I'm roasting it over hot coals and sticking sharp
needles into it as we speak. (You don't want to know...)
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.