Stay Open Script Applications & Events
Stay Open Script Applications & Events
- Subject: Stay Open Script Applications & Events
- From: Brett <email@hidden>
- Date: Mon, 03 Feb 2003 19:01:58 -0500
I have the need for some script applications that will live in the Finder's
toolbar. The launch time for these scripts can actually be longer than the
run time so I wanted to be able to set the application to stay open and be
re-runnable by clicking it in the Finder's toolbar.
The app runs great on first launch, but when I next access the application
(by again clicking the icon in the toolbar) the app comes to the front and
nothing happens. That should mean that the app is getting an activate event-
to test that, I put together the following script:
--
on open
display dialog "Open"
end open
on run
display dialog "run"
end run
on activate
display dialog "activate"
end activate
--
activate never gets called, but open works (if I drop something on the app)
and run works. Nothing seems to get called when the app is simply activated.
Anyone know what (if any) usable event is sent to the app when it is
activated?
-Brett
_______________________________________________
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.