1
AppleScript를 사용하여 시스템 환경 설정에서 실제 윈도우가 열리지 않고 "원격 로그인"을 활성화하는 스크립트를 만듭니다.'시스템 환경 설정'에서 설정을 편집하기 위해 AppleScript 만들기
tell application "System Events" to set visible of process "System Preferences" to false
: 같은
tell application "System Preferences" to launch
tell application "System Preferences" to set current pane to pane "com.apple.preferences.sharing"
tell application "System Events" to set visible of process "System Preferences" to false
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of row 5 of table 1 of scroll area 1 of group 1 of window "Sharing"
tell application "System Preferences"
quit
end tell
end tell
내가 시도 다양한 라인 : 아래
그러므로 내가이 일을 정확히 볼 수 작업 여전히 시스템 환경 설정 창을 엽니 다 내 코드입니다하지만 여전히 내가 원하는 결과를주지 않습니다.
내 질문은이 프로세스를 수행하는 동안 창을 숨길 수있는 줄을 쓸 수 있습니까? 감사.
는
완벽하고 좋은 방법입니다. 고맙습니다. – l00kitsjake