Skip to content

Instantly share code, notes, and snippets.

@JavierCane
Forked from SebAshton/gist:3423778
Created September 9, 2013 21:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JavierCane/6501479 to your computer and use it in GitHub Desktop.
Save JavierCane/6501479 to your computer and use it in GitHub Desktop.

#Usage

  • Launch Automator (Applications > Utilities > Automator)
  • Select Utilities from the Library
  • Drag "Run AppleScript" into workflow
  • Paste and edit the below as appropriate.

###The AppleScript

on run {input, parameters}
    tell application "Terminal"
        activate
        do shell script "cd <path>/<to>/<Vagrant>/<Folder>/; sudo vagrant up;" user name "my user" password "mypassword" with administrator privilages
    end tell
end run

###Further

  • Assign to a command in your favourite launcher application (like Alfred)
  • Add a Growl or Notification center alert when the process is complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment