On Jul 12, 2005, at 11:56 AM, Brian wrote:
iCal was set to run it at 11 PM and 7 AM.
If your script run at 11PM (23), foo is not greater than 23 (it is equal), this is the same at 7AM,
foo is not less than 7...
Sometimes the simple thing gets past me; foo will never be greater than 23 because from 11:00 PM to 11:59:59 PM, foo will be 23, and at midnight, foo will be zero.
So, I changed the script to check whether foo is greater than 22.
Your script works very well here, I put it in the 'Mail Scripts' folder, as a compiled script like Matt say.
It works now, using test values, when run from script editor; I'll find out tonight whether it will work when run from iCal.
But I have to change the
set foo to hours of (current date)
in
set foo to (time of (current date)) / 3600
That works fine for me as written, but I'm using Tiger, so that might make the difference. Have you tried "hours of (get current date)"?
-- Michelle
--
Those who extol the "nobility of labor" mean the labor of others.