I'm still on 10.5.8 and the problem persists.
I have semi-solved it by making a minor change in the AppleScript file. I'm no AppleScript-guru, so all I could do, was to stop the automatic sending of invitations. On the other hand I didn't want to disable the function altogether, so I just let it create the mail and bring it to the front without sending it. Then it's easy to delete, edit og send it immediately.
Heres the simple recipe:
0) Close iCal.
1) Open /Applications/iCal.app/Contents/Resources/Scripts/Mail.scpt
(You will have to right-click the iCal.app file to open (or show) "content of package" in Finder.)
2) Before you do, please right-click the file and choose compress "Mail.scpt" to make a zip-backup in case something goes wrong.
3) Right-click the Mail.scpt and choose to open in Script Editor.
4) Make the changes (se code below).
5) Press the compile button
6) Close window and save changes on exit.
7) Open iCal and test it by making changes to an event with a participant-email attached.
Basically, all I've done is to change the 2 occations of:
send mymail
with
activate -- line added
-- send mymail
That is: out commententing out "send mymail" and adding the command activate to bring the email-window to the front.
It would be great if somebody could make a dialog that prompts you, if
a) the changes should be emailed in the background
b) a mail prepared (like in my example) or simply dis
c) changes should not be emailed at all
Untill then I will have to live with this somewhat crude solution.
🙂
/jesper
Here's the altered AppleScript:
-- Mail.applescript
-- iCal
on show
mailsbrs(subjectLine, messageText, myrecipients)
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
repeat with i from (count of myrecipients) to 1 by -1
tell mymail to make new to recipient at beginning of to recipients with properties {address:(item i of myrecipients)}
end repeat
set visible of mymail to true
activate
end tell
end show
mailsbrs
on show
mailsbr(subjectLine, messageText, myrecipient, myrecipientname)
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
tell mymail to make new to recipient at beginning of to recipients with properties {address:myrecipient, name:myrecipientname}
set visible of mymail to true
activate
end tell
end show
mailsbr
on send
mailsb(subjectLine, messageText)
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
set visible of mymail to true
activate
end tell
end send
mailsb
on send
mailsbr(subjectLine, messageText, myrecipient, myrecipientname)
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
tell mymail to make new to recipient at beginning of to recipients with properties {address:myrecipient, name:myrecipientname}
set visible of mymail to true
activate -- line added
-- send mymail
end tell
end send
mailsbr
on send
mailsbrp(subjectLine, messageText, myrecipient, myrecipientname, invitationPath)
set pfile to POSIX file invitationPath
set myfile to pfile as alias
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
tell mymail to make new to recipient at beginning of to recipients with properties {address:myrecipient, name:myrecipientname}
tell mymail
tell content
make new attachment with properties {file name:myfile} at after the last word of the the last paragraph
end tell
end tell
set visible of mymail to true
activate -- line added
-- send mymail
end tell
end send
mailsbrp
on send
mailsbp(subjectLine, messageText, invitationPath)
set pfile to POSIX file invitationPath
set myfile to pfile as alias
tell application "Mail"
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
tell mymail
tell content
make new attachment with properties {file name:myfile} at after the last word of the the last paragraph
end tell
end tell
set visible of mymail to true
activate
end tell
end send
mailsbp
property ASDScriptUniqueIdentifier : "Mail.applescript"