> 편집> OptionwantedAppleScript로 키 스트로크 (keystroke) 나 메뉴 바의 버튼을 발견</p> <p>내가 응용 프로그램을 사용하고, 나는이 응용 프로그램에서 데이터를 얻을 싶어
나는 또한 옵션 바로 가기가 발견 (C + COMD + CTRL + 시프트)
나는 이것이 가장 좋은 방법입니다 확실하지 않다 그러나 나는 시도 :
activate application "App"
delay 1
tell application "System Events" to keystroke "C" using {control down, command down, shift}
하지만 결과는
입니다System Events got an error: Can’t make {control down, command down, shift} into type constant or list of constant.
은 응용 프로그램에서 텍스트를 가져 오는 가장 좋은 방법입니까?
스크립트를 수정할 수 있습니까?
PS :
application process "App", static text "445511" of group 3 of group 1 of group 2 of group 5 of UI element 1 of scroll area 1 of group 2 of group 1 of group 2 of UI element 1 of scroll area 1 of splitter group 1 of window "The Title is actually not static"
다른 접근하지만, 제목과 텍스트 할 수있는 동적이며 모든 변경 : 나는
tell application "System Events" to tell application process "App"
set stuff to entire contents of front window
end tell
return stuff
을 실행할 때 나는 내가 거기에 원하는 것을 볼 수 있습니다 시간.
목록에서 'shift down'을 시도하십시오. – user309603
고맙습니다. 문제가 해결되었습니다. 매우 간단하다고 생각합니다. –