Select Mail.app sender for iCal.app invitations in Snow Leopard

See my earlier post on this geared for Leopard.

This tar file adds the functionality to iCal.app for Snow Leopard.
To use this, follow these instructions:

Quit iCal!

Backup iCal.app!

    mkdir ~/Desktop/LeopardiCalBackup
    sudo rsync -Eav --delete /Applications/iCal.app ~/Desktop/SnowLeopardiCalBackup
    sudo hdiutil create -format UDRO -srcfolder ~/Desktop/SnowLeopardiCalBackup -volname SnowLeopardiCalBackup ~/Desktop/SnowLeopardiCalBackup.dmg
    sudo rm -rf ~/Desktop/SnowLeopardiCalBackup/

Copy the dmg file somewhere safe.

Extract the modified AppleScript files:

(assumes iCal.app is in /Applications and SnowLeopardiCalSelectSender-20100215.tar is in ~/Desktop)

    cd /Applications
    sudo tar xvf ~/Desktop/SnowLeopardiCalSelectSender-20100215.tar

Run iCal.app, send an invitation and reply to one, test out the ability to select the sender for the Mail.app outgoing email.

11 Responses to “Select Mail.app sender for iCal.app invitations in Snow Leopard”

  1. Richard Says:

    When I try and process the final command in terminal I get the following error

    RIE:~ Richard$ cd /applications
    RIE:applications Richard$ tar xvf ~/Desktop/SnowLeopardiCalSelectSender-20100215.tar
    x iCal.app/Contents/Resources/Mail.applescript: Can’t unlink already-existing object: Permission denied
    x iCal.app/Contents/Resources/Scripts/Mail.scpt: Can’t unlink already-existing object: Permission denied
    tar: Error exit delayed from previous errors.

    Can you please help?

  2. Matt Says:

    Are you running the command from a user that is an administrator?

    Try to extract the tar file using sudo tar xvf ~/Desktop/SnowLeopardiCalSelectSender-20100215.tar (note the addition of “sudo”).

    Let me know if this works and I’ll update the post.

    Thanks for checking this out.

  3. Richard Says:

    This works perfectly.

    May be worth adding that I needed to restart my laptop before it worked. Not sure if that is because I use FIleVault?

    Many thanks for your help :)

  4. Scott Says:

    I had the same issue and prepending sudo did the trick. I didn’t need to restart.

    Thanks you very much!

  5. Brian Goodman Says:

    Matt,

    Thank you! Work perfectly. One question - are the changes likely to be overwritten when Apple sends out updates, are they update-proof?

    Thanks,

    Brian

  6. Matthias Says:

    Hi, installation went fine.
    One thing … - might it be possible that …. now it is not longer possible to add an email address at “participants” that is not already at the list of known email addresses? When I type in an unknown email address, it is removed when pushing Return.
    Can you reproduce this?
    Is it a side effect of the installation?
    How to handle this?
    ???
    Matthias

  7. Matt Says:

    I imagine any update that touches these applescript files within iCal will overwrite the changes.

  8. Awe Says:

    I imagine any update that touches these applescript files within iCal will overwrite the changes.

  9. Xavier Says:

    Could it possible that instead of selecting a sender address for every recipient just do it once for the whole invitation?

    For example with this script, If I am sending an invitation to 5 people, I have to select 5 times my email address.

    Even more, should it possible to link each calendar to a specific mail address as a default configuration. That is for example the Work calendar I would link it to myaccount.office.com, and my personal calendar to myaccount.hotmail.com

    Any way it does seem that Apple didn’t do their usual attention to detail

  10. Matt Says:

    Sure — these functions could be written to do whatever you want. I’ll publish the function changes I’ve made and let other folks do what they need with them. It’s really pretty straightforward to make changes.

  11. Malcolm Says:

    This problem bugged me for a while in Snow Leopard until I realised that I had the ‘Send new messages from : Account of selected mailbox’ preference set.

    At first I thought iCal was just using one of my email accounts at random to send an invite.

    So for those of you who do not want to add this excellent script but want to still decide which account sends the invite, be sure to select your preferred account in mail before send the invite.

Leave a Reply