Re: delay doesn't work when applet is not frontmost
Re: delay doesn't work when applet is not frontmost
- Subject: Re: delay doesn't work when applet is not frontmost
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 05 Mar 2015 23:01:08 +0000
- Thread-topic: delay doesn't work when applet is not frontmost
I have a script that looks for files to appear on a remote FTP site. If a
file doesn't show up when first expected it delays 1 min, then tries
again. The files are supposed to arrive in two batches, and I use the idle
handler to tell the script when to start looking for each batch.
Since the script runs in the background, it would ignore the delay and
constantly check the ftp site.
I have another script that needs a delay to give the user a chance to see
what's going on and cancel operation or continue. Before the script didn't
need a delay, but as users upgraded over the years to new macs and OS's
the script started running so fast, they wanted that pause back. So in
that case I think your sleep routine would be a good idea. Maybe for the
other script too.
Thanks
ES
>
>I have to ask, though. When are people using delays, other than for
>horrors like GUI scripting?
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden