/ entropy-cyclelog.applescript
entropy-cyclelog.applescript
1 on clicked theObject 2 -- Read in the preferences 3 set theLocation to POSIX path of (call method "defaultObjectForKey:" with parameter "entropy") 4 5 try 6 do shell script "cd " & theLocation & ";mv -f entropy.log entropy.old.log" 7 display dialog "entropy.log successfully copied over to entropy.old.log" 8 on error 9 display dialog "Error: entropy.log not found." 10 end try 11 end clicked 12