Skip to content

Instantly share code, notes, and snippets.

@lordlycastle
Created March 31, 2020 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordlycastle/068c374de87c3e1482cd03017f1103d6 to your computer and use it in GitHub Desktop.
Save lordlycastle/068c374de87c3e1482cd03017f1103d6 to your computer and use it in GitHub Desktop.
-- new version of script for iTerm2 v2.9+
tell application id "com.googlecode.iterm2"
activate
set _session to current session of current window
tell _session
set command to get the clipboard
write text "{popclip text}"
end tell
tell application id "com.googlecode.iterm2"
activate
set _session to current session of current terminal
tell _session
set command to get the clipboard
write text "{popclip text}"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment