Re: setting waiting time in script
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.