Jump to content

Mount external Drive & Start iPhoto

Recommended Posts

I have an external drive which has my iPhoto and iTunes library, since I do not need it all the time I wanted to create a workflow that...


Mounts external Drive

Starts iPhoto


Since the mounting of the drive takes a few seconds I need to delay the start of iPhoto so that the drive is mounted and it will find the library there.


I tried the following:


do shell script "diskutil mount /dev/disk4s2"
delay 30
tell application "iPhoto" to activate


I had it saved as a "osascript"


For some weird reason it does not work. It actually WAITS 30 seconds THEN mounts the drive. I am a script noob I can just imagine that the delay 30 is interpreted for the mounting and not the start of iPhoto.



Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...