대화 형 모드에서 비 대화식 모드로 프로그램이 변경되면서 창에서 모든 컨트롤을 사용하거나 사용하지 않도록 설정하려고합니다. 창문에 모든 내용을 제공하도록 요청하려면 어떻게해야합니까? AppleScript 스튜디오 - 모든 컨트롤을 창에서 얻는 방법
every control of window "mainWindow"
내가 모든 인터페이스 빌더에서 메뉴 항목과 상호 작용에 대한 좋은 문서를 찾을 수 없어, 작동도 사실
contents of window "mainWindow"
하지 않습니다. 팝업 및 버튼 등의 내용을 설정하는 방법과 같은 것들. 내가 컨트롤의 여러 가지 목록을 THT 프로그램에 상태에 따라 켜거나 하차했습니다
property onlineControls: {"maxLength", "speed", "accelerationSlider", "accelerationField", "showInfo"} --and so on, listing all the controls by name
on enableControls(theList, enableState)
tell window "mainWindow"
repeat with theControl in theList
set the enabled of control theControl to enableState
end repeat
end tell
enableControls(onlineControls, true)
그러나 :
감사
나는 순간에 그것을 할 방법입니다. 그것은 최선의 방법으로 보이지 않는 하드 코딩되어야합니다.
"전체 내용" 고마워. – stib