Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. tell_terminal(){
  2. osascript <<END
  3. tell application "Terminal"
  4.     do script "$@"
  5.     activate
  6. end tell
  7. END
  8. }
  9.  
  10. command="vim "
  11. for f in "$@" ; do
  12.     command="$command '$f'"
  13. done
  14.  
  15. tell_terminal "$command"