/ freenet-cyclelog.applescript
freenet-cyclelog.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 & ";mv -f freenet.log freenet.old.log" 7 display dialog "freenet.log successfully copied over to freenet.old.log" 8 on error 9 display dialog "Error: freenet.log not found." 10 end try 11 end clicked 12