Created
March 19, 2012 06:45
-
-
Save heavywatal/2099447 to your computer and use it in GitHub Desktop.
Selected text in mi.app is executed on Terminal.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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