Summary: Compares the front two BBEdit windows using Find Differences.
Requires: BBEdit 6.5
Suggested Key Binding: Command-Control-D
Last Modified: 2019-10-02


BBEdit’s Find Differences command is too flexible for its own good when all you want to do is compare the top two open windows. This script lets you do that with a single key command.

Update: a similar command is built into BBEdit 8.

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


tell application "BBEdit"
set diffResult to compare text window 1 against text window 2
if differences found of diffResult is false then
display dialog (reason for no differences of diffResult)
end if
end tell