Skip to content

Instantly share code, notes, and snippets.

@elyase
Created March 12, 2023 14:51
Show Gist options
  • Save elyase/e1b5e607d37398814caff149b9c2c567 to your computer and use it in GitHub Desktop.
Save elyase/e1b5e607d37398814caff149b9c2c567 to your computer and use it in GitHub Desktop.
Run command in Warp with pop clip
-- # PopClip Run in Warp
-- { name: Run in Warp, icon: iconify:simple-icons:warp, language: applescript }
tell application "Warp"
activate
tell application "System Events"
tell process "Warp"
delay 0.01
set sourceText to "{popclip text}"
keystroke sourceText
delay 0.01
key code 36
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment