【问题标题】:Automator Preferences自动化偏好
【发布时间】:2011-09-08 19:10:25
【问题描述】:

我正在使用 Lion OSX,并且我想制作一个可以切换滚动方向首选项的自动化服务。 因为我也使用 Wacom 数位板,滚动方向搞砸了我的平移,所以我想创建通过按键切换的 Automator 服务。然而,“WatchMeDoIt”需要永远发挥作用,你如何使这项工作(applescript?还是什么?)

非常感谢您的帮助。

【问题讨论】:

    标签: applescript automator


    【解决方案1】:
    on run {} --put whatever is appropriate here
        tell application "System Preferences"
            activate
            set current pane to pane "com.apple.preference.trackpad"
        end tell
    
        tell application "System Events"
            tell process "System Preferences"
               click radio button "Scroll & Zoom" of tab group 1 of window "Trackpad"
               click checkbox 1 of tab group 1 of window "Trackpad"
           end tell
        end tell
    
        tell application "System Preferences" to quit
    end run
    

    应该这样做。 :)

    【讨论】:

      猜你喜欢
      • 2021-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-19
      • 1970-01-01
      • 1970-01-01
      • 2012-01-23
      • 1970-01-01
      相关资源
      最近更新 更多