0

I am trying to create a key binding that will execute a run command instead of "just" inserting the text.

I have set up a Sequence:

  • Next Tab
  • Send: "run"
  • Previous Tab.

The run isn't being executed the text "run" is inserted into the next tab before returning to the previous tab.

Is there a way to execute that script?

  • Possible duplicates : https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote another one : https://apple.stackexchange.com/questions/428912/keyboard-shortcut-to-call-an-applescript-created-with-automator-quick-actio and https://apple.stackexchange.com/questions/1330/run-an-applescript-by-using-a-keyboard-shortcut and https://apple.stackexchange.com/questions/322556/how-can-i-launch-an-applescript-app-im-creating-without-moving-my-mouse – Thinkr May 23 '23 at 18:50
  • 2
    This is not clear. Can you [edit] with some details about what script (language) you’re trying to run, where you’re executing this script and what it’s supposed to do? – Allan May 23 '23 at 18:51
  • @Allan The question is tagged iterm, so it seems like they want to do it there. – Barmar May 23 '23 at 19:04
  • @Barmar, is this a Bash/Zsh script? An AppleScript controlling iTerm? Javascript? Is it from within iTerm or expecting to execute outside of iTerm to make it do something? – Allan May 23 '23 at 19:11
  • It seems like you just need to send the Enter key after sending run. – Barmar May 23 '23 at 19:12
  • I use the third-party application FastScripts to connect hot keys to AppleScripts. – Barmar May 23 '23 at 19:13

0 Answers0