/ freenet-restore.applescript
freenet-restore.applescript
1 on clicked theObject 2 -- Read in the preferences 3 set theLocation to POSIX path of (call method "defaultObjectForKey:" with parameter "location") 4 5 try 6 do shell script "cd " & theLocation & ";sh restore-prev.sh" 7 display dialog "Restore Completed." 8 on error 9 display dialog "Error: I encountered an unknown error trying to execute restore-prev.sh. Could restore-prev.sh be missing? Maybe you have no backup file?" 10 end try 11 end clicked 12