Last active
December 11, 2015 18:48
-
-
Save simonjodet/4644277 to your computer and use it in GitHub Desktop.
This code mounts the USB Hard Drive where the iPhoto library is stored, launch iPhoto then unmount the drive when iPhoto is closed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VOL='/dev/'$(diskutil list | grep -Eo '.*Apple_HFS Pictures.*' | grep -Eo 'disk.s.') | |
hdiutil mountvol $VOL | |
open -W /Applications/iPhoto.app | |
hdiutil detach $VOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment