PDA

View Full Version : Delay command in Terminal




Darundal
May 12, 2013, 04:26 AM
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 :)



Weaselboy
May 12, 2013, 07:34 AM
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:

do shell script "blah blah blah"
delay 10
do shell script "blah blah blah"

Just put your Terminal command inside the quotes.

Bear
May 12, 2013, 07:40 AM
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.

Shrink
May 12, 2013, 07:43 AM
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:

Darundal
May 13, 2013, 05:02 AM
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:

o.o