Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darundal

macrumors newbie
Original poster
May 5, 2013
13
0
So I'm making a short application in AppleScript Editor and I would like to know how to make it wait for 10 seconds before executing the next command. Thanks :)
 
So I'm making a short application in AppleScript Editor and I would like to know how to make it wait for 10 seconds before executing the next command. Thanks :)

Do you mean a delay between Terminal commands?

You could do this:

Code:
do shell script "blah blah blah"
delay 10
do shell script "blah blah blah"

Just put your Terminal command inside the quotes.
 
If you want a terminal command to do the delay, that would be "sleep 10".

It all depends on how you want the delay implemented.
 
TERMINAL...

A dark and scary place for the non-tech.

And naming it using the same term as the one that means....inevitably leading to death, doesn't help!:eek:
 

Attachments

  • BE AFRAID....png
    BE AFRAID....png
    297.3 KB · Views: 655
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.