Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
- Subject: Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 01 Jun 2002 23:43:36 -0700
On 6/1/02 11:04 PM, "Timothy Bates" <email@hidden> wrote:
>
This script is now broken under X (10.1.4)
>
>
tell application "Finder"
>
application process whose frontmost is true
>
-->Can't get application whose frontmost = true.
>
end tell
>
>
In the Finder dictionary, process and application process are listed as
>
legacy (and I guess are now broken?)
>
>
Anyone know what is the recommended new way to get the frontmost app?
>
Can't see anything in the standard additions.
>
Nothing too serious is broken, Tim, or barely. That's improper syntax. God
knows what Akua or other coercion got it to work for you in OS 9, if it ever
did. (Actually there is an Akua term 'process' which may have come into play
here.)
tell application "Finder"
first application process whose frontmost is true
end tell
--> {Script Debugger}
I.e. It's actually getting 'every application process whose frontmost is
true', a list. I reported this about 6 months ago. Quite easy to work
around, keeping in mind that it may get fixed one of these days:
item 1 of (every application process whose frontmost is true)
--
Paul Berkowitz
_______________________________________________
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.