• 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: setting waiting time in script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting waiting time in script


  • Subject: Re: setting waiting time in script
  • From: Sander Tekelenburg <email@hidden>
  • Date: Wed, 22 May 2002 03:00:55 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 00:11 +0200 UTC, on 22-05-2002, Salanki Benjamin wrote:

> Hi!
>
> How can I set the time interval for a function to repeat itself. I can
> specify repeat, but not the interval. I want to have the script run
> every minute. Can I do this in AppleScript, or maybe with the help of
> some Cocoa?

Use an on idle handler:

on idle
-- do stuff
return 60 -- sit quiet for 60 seconds, then do stuff again
end idle

Make sure to save the script as a "stay-open" applet.

HTH


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPOrttOsywKfXgqKdEQK+OgCgjd5iTvUmv4UVf0z+KLKimaHkahAAnj1o
iwDQAKpA97R4tarHw0VHtHyJ
=6GWL
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
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: 
 >setting waiting time in script (From: Salánki Benjámin <email@hidden>)

  • Prev by Date: Re: osascript - path to me
  • Next by Date: adding text tom beginning of file FIXED, Now changing filenames s cript...
  • Previous by thread: setting waiting time in script
  • Next by thread: How to add text to the beginning of a file
  • Index(es):
    • Date
    • Thread