• 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
Help with quitting stay-open app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with quitting stay-open app


  • Subject: Help with quitting stay-open app
  • From: Emmett Gray <email@hidden>
  • Date: Thu, 26 May 2005 18:18:30 +0900

There's some behavior I don't understand. I have the following script:

to confirmDropped(newItems)
	activate
	try
		display dialog "Process the dropped item(s)?"
		--do something if OK
	on error number -128 (* user cancelled *)
		quit
	end try
end confirmDropped

on open newItems
	confirmDropped(newItems)
	display dialog "Why do I see this if I cancelled?"
end open

on idle
	display dialog "But I don't see this if I cancelled"
	quit
end idle

The issue is that if I cancel the initial action, confirmDropped, I still see the next dialog in the open handler, but it doesn't ever get to the idle handler. Why doesn't it just quit when I tell it to? Of course I can bash my way through to make it quit when I want, but I'd like to understand what's going on in the program flow.

TIA

--Emmett
_______________________________________________
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


  • Follow-Ups:
    • Re: Help with quitting stay-open app
      • From: kai <email@hidden>
  • Prev by Date: Re: About the System Information command
  • Next by Date: Re: [ann] TextCommands 0.4.0
  • Previous by thread: Re: Help with quitting stay-open app
  • Next by thread: Re: Help with quitting stay-open app
  • Index(es):
    • Date
    • Thread