automatically email alarm to iCal attendees

Hi,
I’m very new at AppleScript and would really appreciate any advice regarding a script I’m trying to write:
Here’s what I’m attempting to do:
I want to have iCal automatically send out an email reminder to attendees (but not the organizer) at calendar events two days before the event. ICal will send the organizer an email, but not the attendee. I am having a problem getting my script to find the email address. I keep getting a message saying the "attendee’ is not defined, but I’m not quite sure how to do that; (I am a beginner).
Thanks in advance
Joan

Here’s my script so far.:

set the_body to “Your lesson with Dave is scheduled for blank.
Please note that cancellations require 24 hours’ notice”
set the_subject to “Your Lesson with Dave”
set mail_address to “attendee_email”

tell application “Mail”
set new_message to make new outgoing message with properties {subject:the_subject, visible:true}
tell new_message
set content of it to the_body
make new to recipient with properties {name:attendee, address:item 1 of email_value_list}
–add recipients
send_mail_alarm to attendee
end tell

end tell

i’ve done something very sililar to this. pobably a peice of cake to modify for your needs.

it is called iCalMail, you can modify it (just give some credit), and you can get it at http://home.comcast.net/~themacgeek/0/0.html