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: Jon Pugh <email@hidden>
- Date: Fri, 4 Oct 2002 21:32:50 -0700
At 10:46 AM -0700 10/4/02, David A. Cox wrote:
>
I think this is a bug, but if not, I would love to know what it is used
>
for.
>
>
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.
I suspect it's intentional. Cmd-Tab is most useful for switching between two applications. Try it with applications that create a new window on reopen. If you implemented the reopen event, then you would get a new window in every app without a window that you Cmd-Tabbed to.
Of course, you could argue that new windows would be the correct behavior. You could be correct, but the code apparently doesn't think so.
Nevertheless, I think that it would be a bug in the Cmd-Alt code, not AppleScript.
Jon
_______________________________________________
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.