Re: App and droplet
Re: App and droplet
- Subject: Re: App and droplet
- From: Craig Stanton <email@hidden>
- Date: Thu, 12 Oct 2006 07:11:55 +1300
Right, but that doesn't tell me how to keep it open in one case and
close in the other.
What I thought would work was to declare a boolean in the on-run
clause and not call quit at the end. Then in the on-open-with-
documents bit it does it's thing and if the variable is defined then
it doesn't quit. But it doesn't work. Despite checking the variable
like this the script still reports an error that forceClose is not
defined
if defined(stayOpen) then
--do nothing
display alert ("bob")
else
quit
end if
Any suggestions?
On 12/10/2006, at 6:58 AM, Steven D. Majewski wrote:
On Oct 11, 2006, at 1:33 PM, Craig Stanton wrote:
Hi all,
I released a droplet a few weeks ago and people seemed to like
it. But the one consistent thing people contact me about it that
it quits after doing it's thing. This is exactly what I expected
to happen but they want it to stay open. It seems they are double-
clicking it, then dragging things onto it, rather than dragging
things on when it is closed. Is there a good way to make a script
quit when it was started with drag-and-drop, but stay open if it
was started by double clicking?
Double clicking will run the default or run handler, while a drop
will run the open handler.
I've often used the run handler to run a menu with several options
-- to set or change defaults
and other options or to open via a choose file menu rather than
file drop, while the drag-and-drop
open handler just does it's thing and quits.
-- Steve Majewski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (AppleScript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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