Re: How to get frontmost application?
Re: How to get frontmost application?
- Subject: Re: How to get frontmost application?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 8 Feb 2002 06:24:38 -0700
On 2/8/02 12:03 AM, Paul Berkowitz <email@hidden> wrote:
>
How about:
>
>
set frontApp (path to frontmost application) as string
>
>
Then, at end:
>
>
tell application frontApp to activate
But wouldn't the script's applet become the frontmost application when
it's launched? Therefore, it would not know what was frontmost just
before it was launched. Even worse, launching it would probably make the
Finder the frontmost app just before it was launched.
--Michelle
>
> I would like to run a script that gets the current frontmost application at
>
> launch, so it can reactivate that application when it's done. Can't figure
>
> out for the life of me how to do that.
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------
_______________________________________________
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.