• 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: Process whose frontmost *was* true?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process whose frontmost *was* true?


  • Subject: Re: Process whose frontmost *was* true?
  • From: Joseph Weaks <email@hidden>
  • Date: Thu, 27 May 2004 14:21:53 -0500

However,

tell application "Finder" or "System Event" to set frontProcess to every process whose frontmost is true

is not reliable. Consider this script when run from the Applescript menu:

tell application "Finder" to get (displayed name of (path to frontmost application))
-- Smile (or whatever app was in the front)

tell application "Finder" to get (name of every process whose frontmost is true)
-- System Events

tell application "System Events" to get (name of every process whose frontmost is true)
-- System Events

Hence, I'd suggest using the first example.

Cheers,
Joe Weaks
_______________________________________________
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: Process whose frontmost *was* true?
      • From: Nigel Smith <email@hidden>
References: 
 >Process whose frontmost *was* true? (From: Jeff Porten <email@hidden>)
 >Re: Process whose frontmost *was* true? (From: David Durkee <email@hidden>)
 >Re: Process whose frontmost *was* true? (From: Graff <email@hidden>)

  • Prev by Date: Re: Address Book scripting bug
  • Next by Date: Prevent control key "run or quit" dialog
  • Previous by thread: Re: Process whose frontmost *was* true?
  • Next by thread: Re: Process whose frontmost *was* true?
  • Index(es):
    • Date
    • Thread