1
I'm trying to paste text from apple script to iTerm.
activate application "iTerm"
tell application "iTerm"
tell current tab of current window
set cmd to "command"
keystroke cmd
keystroke return
end tell
end tell
But i'm getting an error:
iTerm got an error: Can’t get keystroke "command" of current tab of current window.
Any ideas how to fix this?
As I here there is available write text
command https://www.iterm2.com/documentation-scripting.html