Jay Soffian wrote:
Yup, that's pretty much what I'm looking for too.
I ended up hacking together some of the commands from the Diff bundle to get an opendiff equivalent of "Diff Document With Arbitrary File...", but it only works with the saved version of the current document which limits its usefulness (can't compare unsaved changes, can't compare new unsaved documents for instance).
Still, in case anybody else finds it useful: (Save: Nothing) (Input: Entire Document) (Output: Discard)
require_cmd opendiff "Opendiff comes with Apple's developer tools."
# set utf-8 as the default encoding (used by opendiff) export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100
path=$(osascript<<END tell application "TextMate" set theFile to choose file set the result to POSIX path of theFile end tell END)
opendiff "$path" "$TM_FILEPATH"