Re: Window title of frontmost application
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.