Mail script stopped working after update to Mountain Lion

I have a script that extracts certain messages from a selected mailbox. This has been working perfectly for months but after changing to Mountain Lion the script issues a message “Mail got an error. AppleEvent timed out”. I know that the system times out after 120 seconds but the script used to run in about 12 seconds. Also, I have to ˜Force Quit’ Mail to close Mail. I have tried running the script on both my iMac and MacBook, both have the same result. Slightly changing the script to exclude ˜content of’ makes it work but doesn’t give the result I want , any help greatly appreciated.

tell application “Mail”
tell mailbox “CS Notepad”
tell mailbox “Complete”
set CS_Messages to content of every message that subject contains “Daily Summary”
end tell
end tell
end tell

Model: iMac
AppleScript: 2.5 (138)
Browser: Safari 536.25
Operating System: Mac OS X (10.8)

Here the script extracted the contents of 667 messages without any problem.

You may try to split the mailbox contents to check if there is a problem with one or some messages.

Yvan KOENIG (VALLAURIS, France) jeudi 13 septembre 2012 18:13:16