Programmieren
Time Machine mit AppleScript ein- und ausschalten
Mittwoch, den 21. Oktober 2009, Kategorie: Tipps und Tricks
Wenn man Time Machine in Snow Leopard per Applescript ein- und ausschalten will, dann kann man es so machen:
tell application "System Preferences"
      activate
      set current pane to pane "Time Machine"
end tell
tell application "System Events"
      tell application process "System Preferences"
            click button 6 of window "Time Machine" -- 6=Aus 7=Ein
      end tell
end tell
tell application "System Preferences"
      activate
      set current pane to pane "Time Machine"
end tell
tell application "System Events"
      tell application process "System Preferences"
            click button 6 of window "Time Machine" -- 6=Aus 7=Ein
      end tell
end tell