Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 502 Bytes
# Dropzone Destination Info
# Name: Diff files with FileMerge
# Description: You can diff files with dragging them
# Handles: NSFilenamesPboardType
# Events: dragged
# Creator: Gergo Sulymosi
# URL: http://twitter.com/trekdemo
# IconURL: http://trek.2sided.hu/uploads/filemergeicon.png
def dragged
$dz.begin("Opening FileMerge...")
unless $items.size == 2
$dz.finish("You must drag two files!")
$dz.url(false)
exit
end
system('opendiff', $items.first, $items.last)
$dz.url(false)
end