Re: "on reopen" not called from Doc via cmd-tab
Re: "on reopen" not called from Doc via cmd-tab
- Subject: Re: "on reopen" not called from Doc via cmd-tab
- From: "David A. Cox" <email@hidden>
- Date: Fri, 4 Oct 2002 13:49:23 -0700 (PDT)
interesting. But when I tried adding
on activate
do stuff
end activate
It does not "do stuff".
Is there a way to get a script to execute code when it is activated via
cmd-tab?
DAC
On Fri, 4 Oct 2002, Chris Page wrote:
>
On Friday, October 4, 2002, at 10:46 AM, David A. Cox wrote:
>
>
> I have a script that is set to stay open. It has an "on reopen"
>
> event in the script. When I click on the icon for the script in
>
> the doc, it runs the "on reopen" event. Great. But if I use
>
> Command-Tab to select the application in the doc, it does NOT run
>
> the "on reopen" event, but rather just brings the script to the
>
> forground.
>
>
Not a bug. "reopen" is issued in response to opening an application
>
that is already open. Clicking on a Dock icon is a request to open
>
it. Cycling through applications with Command-Tab just brings them
>
to the front -- your script should get an "activate" message.
>
>
--
>
Chris Page - Mac Guy - Palm, Inc.
>
>
Four words: Mini Cheese Variety Pack
>
_______________________________________________
>
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.
_______________________________________________
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.