• 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: Frontmost App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frontmost App


  • Subject: Re: Frontmost App
  • From: kai <email@hidden>
  • Date: Sun, 13 Feb 2005 06:25:38 +0000


On Sat, 12 Feb 2005 23:10:27 -0700, Donald Hall wrote:

tell application "System Events" to set theName to the name of every process whose frontmost is true

This returns a one element list. For example:

{"Script Editor"}

Alternatively, to avoid getting a list:

tell application "System Events" to set theName to name of first process whose frontmost is true
--> "Script Editor"


---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Frontmost App
  • Next by Date: Re: Offset in list
  • Previous by thread: Re: Frontmost App
  • Next by thread: Re: Frontmost App
  • Index(es):
    • Date
    • Thread