Imported from the Apple Support Forums via the Wayback Machine 🔗
I am trying to set up either an apple script or automator work flow to launch two programs that must be running at the same time. One program must be up and running before the other one is launched for everything to work properly. I tried to set up an apple script to do this but it doesn't quite work right. The script launches both programs one right after the other without waiting for the first one to finish starting up. Is there any way to put a pause in the script somewhere so that the first program has time to finish starting before the second one launches? I would appreciate any help that can be provided.
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
pause in AppleScript...
delay 30
30 can be replaced with whatever (seconds)
example:
tell application "Safari"
activate
delay 90
end tell
tell application "Mail"
activate
end tell
regards
Ric
0
Ric Latham·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Pause in Automator...
add in a "Run AppleScript"--->delay 90
change delay to whatever...
hope this helps
Regards
Ric
0
Scott Siege·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I was wondering the same thing. However, is there a way to make automator wait for a specific thing? I have an application that needs to access a file on a disk image. I need to pause just long enough to mount the image - which is quite variable from image to image - and extremely fast if the image just happens to be mounted already.
Can this be done?
Also - the pause you mentioned is actually available in automator - just search for "pause"
Thanks,
-Scott
0
Ric Latham·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Scott,
sorry I'm old school 'think AppleScript first'...
...yes as you correctly say 'pause' is available directly in Automater !
As for the pause till mounted...I think that you will have to either use a long pause that covers all...or use an AppleScript !