메시지의 시작 부분에 미리 정의 된 텍스트를 삽입하는 applescript를 작성하려고합니다. 이것은 내가 현재 가지고있는 것입니다 :메시지 시작 부분에 텍스트 삽입하기
set msgClass to (choose from list {"Green", "Blue", "Purple"} with title "Choose:")
if result is false then
stop
else
set msgClasstxt to the result
set msgClasstxt to "Classification: " & msgClasstxt
tell application "System Events"
key code 126 using {command down}
keystroke return
keystroke return
key code 126 using {command down}
end tell
tell application "Microsoft Outlook" to set selection to msgClasstxt
end if
내가이 할 수있는 더 나은 방법이있을거야,하지만 목적은 다음과 같다 :
는- 이동 홈 CMD + 위쪽 승/
- 만들기 두 개의 빈 라인
- 이동 홈 다시
- 텍스트 삽입
내 문제는 키 스트로크가 수행되기 전에 텍스트가 삽입된다는 것입니다. Vexing. 누구든지 도와 줄 수 있습니까?
중간에 어떤 OS X 버전을 사용하십니까? – summea
10.10.2에서 테스트. 지연 추가, 지연 후, 삽입 텍스트 발생, 모든 시스템 이벤트 발생. – jpdyson