Help with quitting stay-open app
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