Xdelta_GUI for mac

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Xdelta_GUI for mac

#1 Post by mavrothal »

With all of peebee's deltas around I thought to make Xdelta_GUI for OS X :shock:
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
and "File -> Export..." it as an application.

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
Attachments
Xdelta_mac.tar.gz
xdelta_gui for *mac OS X only*
(66.91 KiB) Downloaded 135 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Post Reply