/ entropy-upgrade.applescript
entropy-upgrade.applescript
 1  
 2  on clicked theObject
 3  	-- Read in the preferences
 4  	set theLocation to POSIX path of (call method "defaultObjectForKey:" with parameter "entropy")
 5  	-- no need to stop as the script does that for us and then restarts entropy
 6  	-- tell progress indicator "progress" of window "main" to stop
 7  	try
 8  		do shell script "cd " & theLocation & ";sh update.sh"
 9  		display dialog "Entropy sucessfully upgraded to latest version."
10  	on error
11  		display dialog "Error: I encountered an unknown error trying to execute update.sh. Could update.sh be missing?"
12  	end try
13  end clicked
14  
15