User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2
On 11/10/06 19:33, Craig Stanton wrote:
[...] 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?
If you allow, my 2 cents:
property RanRun : false
set RanRun to true
on open DraggedItems
-- do something with DraggedItems
if not RanRun then tell me to quit
-- For an applet: make sure RanRun is reset.
-- Should not be needed in AS Studio.
set RanRun to false
Seems to work here, as a stay-open applet.
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