小编meh*_*meh的帖子

如何使用 Applescript 更改首选项窗格滑块值?

我正在尝试创建一个 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)

macos scripting applescript

3
推荐指数
1
解决办法
7125
查看次数

标签 统计

applescript ×1

macos ×1

scripting ×1