Compare Messages

Summary: Uses BBEdit to find the differences between two messages’ bodies.
Requires: Mailsmith, BBEdit
Suggested Key Binding: Command-Control-C
Last Modified: 2019-10-02

Description

Select two messages in Mailsmith and run this script to compare them with BBEdit.

Installation Instructions · Download in Compiled Format · Download in Text Format

Script

tell application "Mailsmith"
    
set m1 to message 1 of the selection
    
set m2 to message 2 of the selection
    
set b1 to contents of m1 as string
    
set b2 to contents of m2 as string
end tell
tell application "BBEdit"
    
activate
    
make new text window with properties {text:b1}
    
make new text window with properties {text:b2}
    
compare text window 1 against text window 2
end tell
-- could be modified to use opendiff/FileMerge