Re: Active Application
Re: Active Application
- Subject: Re: Active Application
- From: Andrew Oliver <email@hidden>
- Date: Thu, 13 Mar 2003 14:08:34 -0800
Mac OS X:
tell application "System Events"
name of every process whose frontmost is true
end tell
On previous OS's, target the Finder instead of System Events
Andrew
:)
On 3/13/03 12:46 PM, "Adam Goldstein" <email@hidden> wrote:
>
I feel like an idiot for asking this, but:
>
>
I'm trying to get the name of the application whose name appears in the menu
>
bar.
>
>
Here are the things I've tried, with results:
>
>
current application
>
Result: "current application"
>
>
frontmost application
>
Result: "frontmost application"
>
>
tell current application
>
name of me
>
end tell
>
Result: "Execution error, can't get name"
>
>
Am I missing something, or is it impossible to get the name of the currently
>
active application?
>
_______________________________________________
>
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.