Re: "on run" & "on re-run"
Re: "on run" & "on re-run"
- Subject: Re: "on run" & "on re-run"
- From: paulskinner <email@hidden>
- Date: Fri, 15 Feb 2002 14:45:58 -0500
Right you are. I responded incorrectly. :^(
Reopen was my first thought, but I changed my response after noting
that it was responding to double-clicking by functioning properly. I was
thinking that this should pass a reopen event to a running stay-open app.
So this makes me wonder, is there a REOPEN event or is the RUN
event re-routed to the REOPEN handler when the app is already running?
Since JJ's app responded to a second icon double click I assume that
there are both, but I'd like to know for sure. And of course this begs
the question...Does the finder first test the state of the app before
generating an event? And if so, why does the icon double-click
consistently send RUN?
When I select a running stay-open app in the Dock (OS10.1.2/AS
1.8.1) the app runs it's REOPEN handler; is this correct behavior? I
expected an ACTIVATE.
OK I know...'Off to the ASLG with you!' trudge, trudge, trudge...
On Friday, February 15, 2002, at 01:50 PM, Paul Berkowitz wrote:
No, I think he's looking for:
on reopen
end reopen
which will work with a droplet. You can tell it to run (or to open) if
you
wish to direct it to do the same as that command handler, or to do
something
else instead.
--
Paul Berkowitz
From: paulskinner <email@hidden>
Date: Fri, 15 Feb 2002 13:29:12 -0500
To: AppleScript Users <email@hidden>
Subject: Re: "on run" & "on re-run"
What you're looking for is...
on activate
--do stuff
end
On Friday, February 15, 2002, at 01:19 PM, JJ wrote:
Let's say I'm running a stay-open applet/droplet from apple menu or
from any
app able to launch external files.
on run
beep
end run
--> first time works OK
--> Also, every time it is double-clicked, works OK
But, the second time I choose my app at apple menu, it becomes the
frontmost
app, but doesn't do nothing.
What's the apple event I should handle to catch Finder's requests?
Doesn't it exists "on re-run"?
JJ--
Paul Skinner
_______________________________________________
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.