• 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: Adam Hinshaw <email@hidden>
  • Date: Sat, 26 Apr 2003 12:37:42 +1000

on 26/4/03 12:21 PM, 3 at email@hidden wrote:

> 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)


Are you on 10.2.x with the System Events Beta ?

Also check the 'Universal Access' preference pane that 'Enable access for
assistive devices' is checked.
(Which is a real pain if your trying to ship something!
Anyone know of a scriptable way to check for this/ turn it on? a 'defaults
write' would be good.)

adam.
_______________________________________________
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: 3 <email@hidden>
References: 
 >Re: Window title of frontmost application (From: 3 <email@hidden>)

  • Prev by Date: Re: Window title of frontmost application
  • 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