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: HOnza Koudelka <email@hidden>
- Date: Wed, 5 Jun 2002 10:03:48 +0200
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.
This thread seems to be closed already but I didn't see answer to the
question about why these things are listed as legacy in the Finder's
dictionary...
The answer is quite simple - Finder is officially no longer
responsible for maintaining processes in Mac OS X. It's just an
application like any other. You should use application "System
Events" from within AppleScript to work with global things like
processes.
Unfortunately, not even all developers at Apple seem to know about
this and some of them still rely on Finder...
HOnza
_______________________________________________
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.