• 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: delay doesn't work when applet is not frontmost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: delay doesn't work when applet is not frontmost
      • From: Shane Stanley <email@hidden>
References: 
 >delay doesn't work when applet is not frontmost (From: "Stockly, Ed" <email@hidden>)
 >Re: delay doesn't work when applet is not frontmost (From: Shane Stanley <email@hidden>)
 >Re: delay doesn't work when applet is not frontmost (From: "Stockly, Ed" <email@hidden>)
 >Re: delay doesn't work when applet is not frontmost (From: Shane Stanley <email@hidden>)
 >Re: delay doesn't work when applet is not frontmost (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: delay doesn't work when applet is not frontmost
  • Next by Date: Re: delay doesn't work when applet is not frontmost
  • Previous by thread: Re: delay doesn't work when applet is not frontmost
  • Next by thread: Re: delay doesn't work when applet is not frontmost
  • Index(es):
    • Date
    • Thread