Re: GU I scripting and Airport passwords
Re: GU I scripting and Airport passwords
- Subject: Re: GU I scripting and Airport passwords
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 17 Oct 2008 07:41:36 -0400
- Thread-topic: GU I scripting and Airport passwords
on 2008-10-17 5:08 AM, Axel Luttgens at email@hidden wrote:
> So, this seems to be working as intended here:
>
> tell application "SystemUIServer" to activate
> tell application "System Events"
> tell application process "SystemUIServer"
> tell window 1
> tell text field 1
> keystroke "abc"
> keystroke return
> end tell
> end tell
> end tell
> end tell
The 'keystroke' command only needs to be targeted at the application
process, not at a specific UI element. The keystroke is then automatically
sent to whatever UI element is currently active (has keyboard focus) in that
application, except that most applications will treat keystrokes with
command down as keyboard shortcuts.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden