• 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: Toggle Parental controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Toggle Parental controls
      • From: Peter Baxter <email@hidden>
References: 
 >Toggle Parental controls (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Mount Point to Alias
  • Next by Date: Re: Toggle Parental controls
  • Previous by thread: Toggle Parental controls
  • Next by thread: Re: Toggle Parental controls
  • Index(es):
    • Date
    • Thread