• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dialog Director - Quit action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Untitled window in Outlook Express
  • Next by Date: R?©p. : Apple - About Apple - Mailing Lists
  • Previous by thread: Re: Dialog Director - Quit action
  • Next by thread: Re: Dialog Director - Quit action
  • Index(es):
    • Date
    • Thread