Delay command in Terminal

Discussion in 'Mac Programming' started by Darundal, May 12, 2013.

  1. macrumors newbie

    Joined:
    May 5, 2013
    #1
    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 :)
     
  2. macrumors P6

    Weaselboy

    Joined:
    Jan 23, 2005
    #2
    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.
     
  3. macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #3
    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.
     
  4. macrumors demi-god

    Shrink

    Joined:
    Feb 26, 2011
    Location:
    New England, USA
    #4
    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:
     

    Attached Files:

  5. thread starter macrumors newbie

    Joined:
    May 5, 2013
    #5
    o.o
     

Share This Page