1017 Views 3 Replies Latest reply: Oct 20, 2008 12:01 PM by Camelot
What's wrong is that you're going about this the wrong way.
Since you're using do shell script, AppleScript is waiting for a response from the shell. By default every action has a timeout value (so that AppleScript doesn't sit and wait indefinitely for something that's broken). That's what the 5 minutes indicates - up to 5 minutes and you're fine, but after 5 minutes AppleScript is giving up, assuming that the shell command failed.
There are two solutions - one is to change the timeout value, but the better solution is to use AppleScript's sleep rather than call a shell script:
Note that you can also use AppleScript date math as well:
delay (5 * minutes)