+ Post New Thread
Results 1 to 3 of 3
Mac Thread, Help with AppleScripts in Technical; Hi, I am currently writing an applescript that will activate remote login and remote management from system preferences AND add ...
  1. #1

    Join Date
    Sep 2013
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Help with AppleScripts

    Hi,

    I am currently writing an applescript that will activate remote login and remote management from system preferences AND add the admin account under "Allow access for:"

    Here is what I currently have,



    tell application "System Preferences"
    activate

    delay 0.5

    set current pane to pane "com.apple.preferences.sharing"
    end tell

    delay 0.5

    tell application "System Events" to tell process "System Preferences"
    clickcheckbox 1 of row 7 of table 1 of scroll area 1 of group 1 of window "Sharing"
    delay 0.3
    clickcheckbox 1 of row 8 of table 1 of scroll area 1 of group 1 of window "Sharing"
    delay 0.3
    end tell



    This succesfully activates both remote login and remote management but I can't seem to find out how to click the "+" button under these tabs, or then add the correct user.
    Any help would be appreciated.

  2. #2

    Join Date
    Jan 2013
    Location
    Romford
    Posts
    173
    Thank Post
    61
    Thanked 34 Times in 27 Posts
    Rep Power
    9
    Do you image your Macs? I believe that you could set this up in the master image, meaning you wouldn't need to manually do it through AS.

  3. #3

    Join Date
    Jul 2010
    Location
    South Hadley, Massachusetts, USA
    Posts
    46
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Using Applescript for this is klugey, and doing it via Applescript UI scripting is klugiest of all. The terminal commands systemsetup and kickstart have you covered. Look at this: bynkii.com: Some command - line tips for Apple Remote Desktop and OS X

SHARE:
+ Post New Thread

Similar Threads

  1. help with centre section in moodle
    By beeswax in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 3rd May 2006, 06:44 PM
  2. Replies: 10
    Last Post: 18th February 2006, 08:34 AM
  3. Help with Ranger
    By in forum Windows
    Replies: 13
    Last Post: 14th December 2005, 05:31 PM
  4. *CRYING* Help with a BroadBand Router and our Network
    By ninjabeaver in forum Wireless Networks
    Replies: 25
    Last Post: 2nd December 2005, 10:50 AM
  5. A Few Things I Need Help With
    By Pear in forum Windows
    Replies: 11
    Last Post: 13th October 2005, 07:42 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •