Skip to content

Instantly share code, notes, and snippets.

@spengilley
Forked from SebAshton/gist:3423778
Last active April 7, 2016 07:58
Show Gist options
  • Save spengilley/346e47fa776f4cc5f50b4ae4d310c4b2 to your computer and use it in GitHub Desktop.
Save spengilley/346e47fa776f4cc5f50b4ae4d310c4b2 to your computer and use it in GitHub Desktop.
AppleScript for Vagrant up

#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