alarm app?

I want to make an app that will say something (I will program what it will say later) so leave a “say” function with filling text and I will change it later, and it will start at a certain time like: 10:45 AM, say something, and end at 10:55 AM and say something and say something and I want it to repeat that 9 times. Thanks for all the help.

thx

Ben

Just save the code below as an Application bundle in Script Editor and create a corresponding cron job.


on run
    set sentence to "Martin, wake up, it's scripting time!"
    repeat 9 times
        say sentence using "Fred"
    end repeat
end run

This would be the necessary entries for your crontab (of course you need to adjust the script path):

45 10 * * * open '/Users/martin/Desktop/wakeup.app' 55 10 * * * open '/Users/martin/Desktop/wakeup.app'
In case you are not familiar with setting up and using cron jobs, this might a good starting point.

Thanks Martin Michel… but perhaps is there an easier way to do it without cron jobs?

Thanks

Ben

Well, setting up cron jobs is easy :smiley: But you might want to use iCal instead :wink:

Good luck!