Skip to content

Instantly share code, notes, and snippets.

@heavywatal
Created March 19, 2012 06:45
Show Gist options
  • Save heavywatal/2099447 to your computer and use it in GitHub Desktop.
Save heavywatal/2099447 to your computer and use it in GitHub Desktop.
Selected text in mi.app is executed on Terminal.app
#!/usr/bin/osascript
tell application "mi"
set CommandLines to selection of front document
end tell
tell application "Terminal"
activate
ignoring application responses
do script with command CommandLines in front window
end ignoring
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment