• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
      • From: Paul Berkowitz <email@hidden>
    • Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
      • From: Helmut Fuchs <email@hidden>
  • Prev by Date: Re: files in a folder
  • Next by Date: Re: Sending Email from AppleScript Without Garbling It
  • Previous by thread: Re: OS 10.1.5
  • Next by thread: Re: Application and application process are legacy in OS X finder suite: how do I find the frontmost app?
  • Index(es):
    • Date
    • Thread