我正在尝试创建一个 AppleScript 来设置System Preferences中Sound菜单下输入类别的输入音量值。
如何改变 Slider 的值?
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events"
if UI elements enabled then
try
tell application process "System Preferences"
tell tab group 1 of window "Sound"
click radio button "Input"
select row 1 of table 1 of scroll area 1
set selected of row 1 of table 1 of scroll area 1 to true
set deviceselected to …Run Code Online (Sandbox Code Playgroud)