2017-02-05 6 views
0

빠르고 간단한 AppleScript 질문입니다. Audio MIDI Setup 응용 프로그램에서 확인란을 선택하는 데 필요한 applescript가 필요합니다. 나는 완전히 새로운 내용의 애플 스크립트입니다. 대화 상자는 다음과 같습니다. 두 번째 확인란을 선택해야합니다.AppleScript로 오디오 MIDI 설정을 변경하십시오.

Audio MIDI Setup window

어떤 힌트가?

감사합니다.

+0

당신이 정확하게 당신이 "무슨 뜻인지 설명 할 수 내가 2 확인란을 선택해야합니다 여기

enter image description here



이 작업을 수행 할 스크립트입니다. "? 내가 볼 수있는 유일한 "확인란"은 음소거 레이블 바로 아래에 있습니다. 뭔가 당신이 찾고있는 것이 아니라고 나에게 말한다. – wch1zpink

+0

정확하게 음소거 레이블 아래의 해당 확인란입니다. – roberta

답변

1

필자는 자신의 시스템 오디오 장치에 "Soundflower"가 없으므로 AppleScript를 정확하게 만들 수있는 정확한 값을 얻을 수 있는지 알 수 없습니다. 그러나이 스크립트는 "Built In Output"에 대한 두 번째 확인란을 선택합니다.

tell application "Audio MIDI Setup" 
activate 
end tell 
delay 2 
try 
    tell application "System Events" 
     tell process "Audio MIDI Setup" 
      select row 2 of outline 1 of scroll area 1 of splitter group 1 of window "Audio Devices" 

-- change the value in the beginning of that line from "select row 2" to "select row 3" This should select the "Soundflower Output Devicee" 

      click checkbox 1 of UI element 4 of row 3 of outline 1 of scroll area 1 of tab group 1 of splitter group 1 of window "Audio Devices" 
     end tell 
    end tell 
end try