Skip to content

Instantly share code, notes, and snippets.

@spockz
Created July 1, 2011 18:08
Show Gist options
  • Select an option

  • Save spockz/1059096 to your computer and use it in GitHub Desktop.

Select an option

Save spockz/1059096 to your computer and use it in GitHub Desktop.
Applescript script to emulate the behaviour of the `start' command in the windows CMD prompt
# /usr/bin/env /bin/sh
start.applescript "`pwd`" $@
#! /usr/bin/env /usr/bin/osascript
on run argv
tell application "Terminal"
set AppleScript's text item delimiters to " "
set cwd to first item of argv
set l to rest of argv
do script "cd " & cwd & " && " & (l as text)
activate
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment