Skip to content

Instantly share code, notes, and snippets.

@wizioo
Last active January 5, 2016 08:59
Show Gist options
  • Save wizioo/771f7e8e7d683f7daf3f to your computer and use it in GitHub Desktop.
Save wizioo/771f7e8e7d683f7daf3f to your computer and use it in GitHub Desktop.
Mount Network Drive on OSX Startup

#How to Automount network drive on osx startup using Automator

##Step 1: Create an Automator app that connects to your network drive

  1. Launch Automator.
  2. Choose Application from the new document dialogue.
  3. In the search field enter pause.
  4. Drag the pause action from the results to the right pane.
  5. Enter 10 seconds to slightly delay the connection attempt to ensure your network connection (wi-fi or otherwise) is ready.
  6. Do a search for server in the search field.
  7. Now drag Get Specified Servers and Connect to Servers (in that order) to the right pane.
  8. In the Get Specified Servers dialogue click Add... and select or enter the address to your network drive. Click OK.
  9. Disconnect from your network drive (eject it), and click Run in Automator to test it. Your network drive should connect after a 10 second delay.
  10. Now save your application. I created a folder called Scripts in my home directory and saved it in there as ConnectToNetworkDrive.

##Step 2: Add the Automator script to your startup items to reconnect to the network drive when you restart

  1. In System Preferences select Users & Groups then your user account.
  2. Select the Login Items tab then drag your newly created Automator app onto the pane.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment