• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need to make a script wait or pause
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to make a script wait or pause


  • Subject: Re: Need to make a script wait or pause
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 17 Apr 2002 11:49:20 -0700

On Wednesday, April 17, 2002, at 05:58 AM, Bob Bader wrote:

I need to run some commands in terminal via an apple script. ...

The problem is that when "command 1" is still running "command 2" tries to
run, but is dependant on command 1 finishing first.

Is there any way to have and apple script pause for a pre determined amount
of time, i.e 5 seconds, so "command 1" can finish.

Ian Mantripp responded:

Use "delay", takes an integer for the number of seconds you want to wait.

Or, if you're not relying seeing the results in a Terminal window, you could use the "do shell script" scripting addition, which won't return until the command is done.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Need to make a script wait or pause (From: Bob Bader <email@hidden>)

  • Prev by Date: Need to ruinb a command as root
  • Next by Date: Re: rename file/copy file
  • Previous by thread: Re: Need to make a script wait or pause
  • Next by thread: Contents of an Excel cell
  • Index(es):
    • Date
    • Thread