Re: Getting front app
Re: Getting front app
- Subject: Re: Getting front app
- From: Jon Pugh <email@hidden>
- Date: Tue, 31 Jul 2001 09:48:24 -0700
At 8:05 AM -0700 7/31/2001, Phil Calvert wrote:
>
I'm trying to get the finder to tell me what application is at the front
>
(and is not a faceless background app). This is what I came up with.
>
>
tell application "Finder"
>
set ActiveApp to name of front application process whose visible is true
>
end tell
tell application "Finder"
set activeApp to (application file of processes whose frontmost is true) as alias
end tell
Watch for digest wrapping on that single line above. This makes activeApp be an alias. You can ask for the name instead if you really want.
Jon