• 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: Window title of frontmost application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window title of frontmost application


  • Subject: Re: Window title of frontmost application
  • From: 3 <email@hidden>
  • Date: Fri, 25 Apr 2003 21:21:48 -0500

On Friday, Apr 25, 2003, at 19:31 US/Central, Adam Hinshaw wrote:
tell application "System Events"
set fm to (the name of application processes whose frontmost is true) as
text
tell application process fm to return the name of window 1
end tell

When running this under SE or osascript in the Terminal, I get:
execution error: System Events got an error: NSCannotCreateScriptCommandError (10)
_______________________________________________
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: Window title of frontmost application
      • From: Adam Hinshaw <email@hidden>
    • Re: Window title of frontmost application
      • From: Adam Hinshaw <email@hidden>
References: 
 >Re: Window title of frontmost application (From: Adam Hinshaw <email@hidden>)

  • Prev by Date: Re: Path to ... as string [was Re: Complete newbie]
  • Next by Date: Re: Window title of frontmost application
  • Previous by thread: Re: Window title of frontmost application
  • Next by thread: Re: Window title of frontmost application
  • Index(es):
    • Date
    • Thread