Found a use for 'reopen'
Found a use for 'reopen'
- Subject: Found a use for 'reopen'
- From: Mr Tea <email@hidden>
- Date: Thu, 12 Sep 2002 01:07:24 +0100
I was looking for an economical way to quit some stay-open droplets that sit
in a DragThing dock on my OS X desktop - ideally with just the one click.
on reopen
tell me to quit
end reopen
...does the job very nicely. I seem to remember this use of 'reopen' coming
up in the list a while back. It doesn't get a mention in the ASLG, though.
I've also taken to putting run handlers in my droplets that open the script
in a script editor:
set theFile to path to me
tell application "Finder"
open theFile using theEditor
end tell
tell me to quit
...the obvious advantage being that I don't have to use contextual menu
widgets or drag the droplet anywhere when I want to edit it. I can just
double click it (or single click if it's a DragThing button), and away I go.
Makes sense to me.
Nick
_______________________________________________
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.