Creating a Recurring Event in Calendar that Counts Down

O

Omar Hakim

Hi,

I'm trying to create a recurring event in my Entourage 2004 calendar so that
the title decreases by one each day.

For example, my calendar would have an event that says "99 days until X",
then the next day it would say "98 days until X", etc. I'd like to find a
way to do this without having to create 99 unique calendar events.

Any suggestions would be greatly appreciated. Thanks.
 
B

Barry Wainwright

Hi,

I'm trying to create a recurring event in my Entourage 2004 calendar so that
the title decreases by one each day.

For example, my calendar would have an event that says "99 days until X",
then the next day it would say "98 days until X", etc. I'd like to find a
way to do this without having to create 99 unique calendar events.

Any suggestions would be greatly appreciated. Thanks.

Use this script: <">http://tinyurl.com/537zy> <http://tinyurl.com/537zy>

If that URL doesn¹t load it up properly, here it is in full:

property targetDate : date "25 December 2004 "
property dateSteps : 7
property startReminders : date "1 december 2004"

set newtargetDate to targetDate
repeat
if newtargetDate < startReminders then exit repeat

tell application "Microsoft Entourage" to make new event with properties
{subject:"" & (targetDate - newtargetDate) div days & " days to go!", start
time:newtargetDate, all day event:true}

set newtargetDate to newtargetDate - dateSteps * days

end repeat
 
O

Omar Hakim

Use this script: <">">http://tinyurl.com/537zy> <http://tinyurl.com/537zy>
<http://tinyurl.com/537zy>

If that URL doesn¹t load it up properly, here it is in full:

property targetDate : date "25 December 2004 "
property dateSteps : 7
property startReminders : date "1 december 2004"

set newtargetDate to targetDate
repeat
if newtargetDate < startReminders then exit repeat

tell application "Microsoft Entourage" to make new event with properties
{subject:"" & (targetDate - newtargetDate) div days & " days to go!", start
time:newtargetDate, all day event:true}

set newtargetDate to newtargetDate - dateSteps * days

end repeat

Thank you!! This script was what I needed!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top