Created
July 1, 2011 18:08
-
-
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
This file contains hidden or 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/env /bin/sh | |
| start.applescript "`pwd`" $@ |
This file contains hidden or 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/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