10.6: Show confirmation dialog before iCal sends notifications

Apr 12, '10 07:30:00AM

Contributed by: magir

Snow Leopard only hintIt seems there's no official way to prevent iCal from sending mails whenever an event is accepted, denied, changed, or created with invitations. I sometimes forward team events from my work computer to my private Mac, and as I already accepted them on my work computer, I don't want iCal to resend any confirmations. The solution for me was suprisingly easy: I modified the AppleScript within the iCal.app bundle to show a confirmation dialog before sending a mail, which allows me to cancel the process.

In Snow Leopard, Control-click on iCal and select Show Package Contents from the pop-up menu. In the new folder that opens, navigate to Contents » Resources » Scripts, and then open Mail.scpt in AppleScript Editor. Simply add the following line at the beginning of each function (after the line starting with on...):

display dialog "iCal wants to send an email. Proceed?"
You'll need admin privileges to modify the file. I suggest to make a backup of the file before the modification.

[robg adds: More than likely, this breaks code signing. How that may affect your use of iCal, I don't know, as I have not tested this hint to see the effects.]

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100408114405109