Oct 06, '09 07:30:00AM • Contributed by: everkleer80
So I sort of came up with a solution that I thought I'd share: I decided to just keep a text file somewhere in which I can log important (or not so important) system changes, such as system updates or important file deletions. I wanted to have it so I can go into Time Machine and use Quick Look on this text file to see the most recent change that I logged at the top of the file, followed by a history of changes. That way, if I'm looking for a particular change, I will know how much further back to go in my Time Machine history.)
So what I did was use Automator to create an app that will prompt for some text, then just insert it (with a date/time stamp) into a predefined text file. The first action in my Automator Workflow is 'Ask For Text,' then the second one is 'Run AppleScript' with the following code:
on run {input, parameters}
set theFileReference to open for access ((path to home folder as string) & "Time Machine Labels.txt" as string) with write permission
set txt to (read theFileReference for (get eof of theFileReference))
write ((current date) as string) & " - " & input & return & txt to theFileReference starting at 0
close access theFileReference
end run