Skip to content

Instantly share code, notes, and snippets.

@SebAshton
Created August 22, 2012 08:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save SebAshton/3423778 to your computer and use it in GitHub Desktop.
Save SebAshton/3423778 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
@sjorsroelofs
Copy link

It should be "privileges"

@mitramejia
Copy link

This will give a vagrant: command not found error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment