Re: Problem with AppleScript
Re: Problem with AppleScript
- Subject: Re: Problem with AppleScript
- From: "John C. Welch" <email@hidden>
- Date: Tue, 12 Dec 2006 18:31:45 -0600
- Thread-topic: Problem with AppleScript
On 12/12/06 01:14, "Christopher Nebel" <email@hidden> wrote:
> Even better...
>
> tell application "System Preferences"
> -- substitute the localized name for "Accounts" if necessary.
> reveal pane "Accounts"
>
> -- or, if you prefer, use this version which works regardless of the
> user's language selection.
> reveal pane id "com.apple.preferences.users"
> end tell
>
> Yes, Virginia, System Preferences *is* scriptable, though only to
> manipulate the current pane.
Beat me to it.
One tip for folks...UI Scripting is the LAST resort, not the first. before
you assume you have to resort to it, see if the application has a
dictionary, or if there's another way to do it. Even when it's the only way,
UI scripting is a fragile hack on the best day of its life.
--
Yeah, I know Sid Vicious wore a lock on a chain around his neck just like
that. But the first time you try and pogo with that thing on it¹s gonna chip
a tooth, Road Warrior.
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden