To run the app in a mac you'll need the puppy xdelta_gui script, xdelta3 binary from homebrew and gtkdialog for mac
To make the attached app yourself open "Script Editor", paste this script:
Code: Select all
tell application "Finder" to set theSel to selection as text
if theSel is "" then display dialog "Nothing selected" buttons {"Cancel"} default button 1
open theSel
on open theSel
set theDelta to POSIX path of theSel
set isDelta to (do shell script "echo " & theDelta & "|rev|cut -c 1-5|rev")
if isDelta is not "delta" then display dialog "This is not a delta file" buttons {"Cancel"} default button 1
tell application "Terminal"
activate
do script "xdelta_gui " & theDelta
end tell
end open
Note: You can get a much "cleaner" app if you use the mac Automator instead. Open New > Application, select 'Action' "Run Shell Script", paste in the code of xdelta_gui from puppy, make sure you include PATH=/usr/local/bin/:$PATH at the top of the script (is not default for system) and that you choose 'Pass input' "as arguments" and you are done.
However the app is 2MB. So no posting