Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > applescript run every 60 seconds

applescript run every 60 seconds
Thread Tools
post_break
Forum Regular
Join Date: Mar 2007
Status: Offline
Apr 11, 2008 , 05:49 PM
 
Does anyone know of a simple way to run an apple script every 60 seconds? I understand the "return 60" but that does not appear to work for me. Is there a small program I can run that will execute apple script every 60 seconds?
     
BLAZE_MkIV
Dedicated MacNNer
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Apr 11, 2008 , 06:45 PM
 
Is your code in the onidle method and not the run method?
     
Gavin
Senior User
Join Date: Oct 2000
Location: Seattle
Status: Offline
Apr 15, 2008 , 09:20 AM
 
There is something built into the system called 'cron' that is designed to run things periodically.

You can edit the "crontab" which sets it up by hand in the terminal but it is pretty arcane.
type: man 5 crontab for system help

here is an intro:
macosxhints.com - Using the 'cron' scheduler

OR

Here is a simple gui interface to it:
Crontooie: A Crontab GUI for Mac OS X

have fun
What's the point of being cool if you can't wear a sombrero?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:25 AM.
All contents of these forums © 1995-2008 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.6.8 © 2000-2008, Jelsoft Enterprises Ltd., SEO by vBSEO 3.0.0 RC8