Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use sendmail for iCal reminders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use sendmail for iCal reminders
Authored by: dbikel on Oct 14, '03 12:44:53PM

Woops. The only script that gets used is Mail.scpt, and I had modified Mail.applescript incorrectly before compiling it into Mail.scpt.

In order to get iCal reminders flowing through sendmail with the latest iCal (which, at the time of this writing, is 1.5.1), copy the Mail.applescript file from /Applications/iCal.app/Contents/Resources to some other convenient location (such as your ~/Desktop directory). Use ScriptEditor to change the function send_mail_sbr to be

on send_mail_sbr(subjectLine, messageText, myrecipient)
	do shell script ("echo \"" & messageText & "\" | mail -s \"" & subjectLine & "\" " & myrecipient)
end send_mail_sbr
and then use the ScriptEditor's "Save As Run-Only..." command to save a compiled version of this script; call this file Mail.scpt. Then, use /Developer/Tools/MvMac to change the name of the old Mail.scpt to something else (like Mail.scpt.old) and use /Developer/Tools/CpMac to copy the new Mail.scpt to /Applications/iCal.app/Contents/Resources. Finally, to make the ownership and permissions be identical to the old version of Mail.scpt, do a
sudo chown root:admin Mail.scpt
sudo chmod 664 Mail.scpt

Repeat this entire procedure for the Mail.applescript and Mail.scpt files in the directory /Applications/iCal.app/Contents/Resources/iCal Helper.app/Contents/Resources, so that e-mail reminders will flow through sendmail even when iCal is not running.

N.B.: As far as I can tell, you must be logged in to receive e-mail reminders from iCal.



[ Reply to This | # ]