2017-03-16 3 views

답변

1

set the clipboard to "Lsj!" as text 
tell application "iTerm" to activate 
delay 0.1 
tell application "System Events" to tell process "iTerm" 
    keystroke (the clipboard) 
end tell 
1

wch1zpink의 대답은 작동해야 작동합니다.

keystroke "l" using {shift down} -- uppercase 
    keystroke "sj!" -- lowercase 
0

를 필요한 경우

또한 작동해야 개별적으로 편지를 쓸 수

tell application "iTerm" to activate 
delay 0.1 
tell application "System Events" to tell process "iTerm" 
key code 37 using {shift down} 
key code 1 
key code 38 
end tell 
관련 문제