rosenkrieger Posted March 16, 2013 Share Posted March 16, 2013 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
rosenkrieger Posted March 16, 2013 Author Share Posted March 16, 2013 Thanks to @gdgtsDE on Twitter I got it fixed... The Solution do shell script "diskutil mount /dev/disk4s2" delay 60 do shell script "open -a iPhoto" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now