image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 14th, 2008, 12:10 PM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
bladerx26 is on a distinguished road
simple applescript question

I am new to Applescript and I need to create a script to push to clients. All I need the script to do is check the Remote Management box under Sharing of System Preferences. How can I do this and, if possible, silently?
Reply With Quote
  #2  
Old September 14th, 2008, 12:19 PM
minckster's Avatar
Registered User
 
Join Date: Jan 2006
Location: New York
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
minckster is on a distinguished road
Here's a script for pushing a button in System Preferences. It may be useful as a starting point. Good luck! It took me a lot of trial and error to get this little snippet working.
Code:
-- Stop and restart TiVo Desktop (starts it if it's not already running)
tell application "System Preferences"
    set current pane to pane "TiVo Desktop"
    tell application "System Events" to tell process "System Preferences"
        if exists button "Stop" of window "TiVo Desktop" then
            click button "Stop" of window "TiVo Desktop"
        end if
        delay 2
        if exists button "Start" of window "TiVo Desktop" then
            click button "Start" of window "TiVo Desktop"
        end if
    end tell
    quit
end tell
It runs silently. At least on Leopard, all you see is the white-blue dot in the Dock under the System Preferences icon.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 01:04 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.