Re: Toggle Parental controls
Re: Toggle Parental controls
- Subject: Re: Toggle Parental controls
- From: Stan Cleveland <email@hidden>
- Date: Wed, 12 Aug 2009 13:19:41 -0700
- Thread-topic: Toggle Parental controls
Title: Re: Toggle Parental controls
On 8/12/09 11:53 AM, "Peter Baxter" wrote:
> I have been pounding away at getting an AS to toggle parental controls
> remotely on students' computers. I have the following script that does
> nothing:
>
> tell application "System Preferences"
> activate
> set current pane to pane "Accounts"
> tell application "System Events"
> tell application process "System Preferences"
> set frontmost to true
> tell window "Accounts"
> tell tab group 1
> click checkbox "Enable Parental Controls" of window "Accounts"
> end tell
> end tell
> end tell
> end tell
> end tell
>
> Can anyone help?
Hi Peter,
Try changing the line:
click checkbox "Enable Parental Controls" of window "Accounts"
to:
click checkbox "Enable Parental Controls"
You’re already addressing the window "Accounts" with the surrounding tell command. The extra of serves only to create a non-existent entity (checkbox "Enable Parental Controls" of window "Accounts" of tab group 1 of window "Accounts") that indeed can do nothing.
HTH,
Stan C.
_______________________________________________
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