tell application "BBEdit"
activate
tell window 1
repeat 100 times
repeat 5 times
key code 124
end repeat
--select insertion point after character 5
keystroke return
--keystroke key code 36
end repeat
end tell
end tell
给出错误
error "BBEdit got an error: Can’t get keystroke \"
\" of window 1." number -1728 from keystroke "
" of window 1
我想要做的就是模拟将光标移动 5 个空格并按回车键很多很多时间。
看起来很简单...