最近因為工作的關係
需要寫一個AppleScript
但是看了網路上一些教學資料和範本
還是沒有辦法很成功的寫完
我主要是想要把觸控板的Tap to Click 和 Secondary Click功能打開
(因為剛安裝完的新系統預設並沒有打開)
只是一直沒有辦法開啟
好像是因為我沒有辦法正確定位選單位置
(因為才剛開始學AppleScript,尤其是針對AppleScript針對GUI選項定位這一部分很不熟 也很不了解)
不知道各位大大是否可以幫我看一下
感恩不盡
tell application "Finder"
activate
open document file "Trackpad.prefPane" of folder "PreferencePanes" of folder "Library" of folder "System" of startup disk
end tell
tell application "System Events"
tell menu bar 1 of window "Trackpad" of process "Trackpad.prefPane"
set menu item "Tap to Click" of menu bar "One Finger" to ture
end tell
end tell