Skip to content

Instantly share code, notes, and snippets.

@Andrewpk
Last active December 27, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andrewpk/7393939 to your computer and use it in GitHub Desktop.
Save Andrewpk/7393939 to your computer and use it in GitHub Desktop.
Create a new automator application that has a single action of 'Run Shell Script' and add this as the script, replacing 'MOUNTNAME' with what you want the network share mounted as, 'USERNAME' and 'PASSWORD' respectively (if you have neither set on your SMB share [seriously?] remove from 'USERNAME' to '@' from that line), 'HOST/PATH/TO/TIMEMACHIN…
mkdir /Volumes/MOUNTNAME; mount_smbfs //USERNAME:PASSWORD@HOST/PATH/TO/TIMEMACHINE/SPARSEBUNDLE /Volumes/MOUNTNAME; /usr/bin/hdiutil attach /Volumes/MOUNTNAME/YOURTIMEMACHINE.sparsebundle;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment