How to write the "Event Log" to a text file
I need to save the Event Log to a text file. I know how to create the external text file, using something like this...
set myLogFile to open for access POSIX file "/Users/tjingrassia/Desktop/myScript.txt" with write permission
write "some text" to myLogFile
close access myLogFile
My question is, how do I replace "some text" with the Event Log?
Also, is it possible to have this be done on the fly. My purpose is to track the status of a Handbrake CLI rip. The Event Log gives the percentage of the encode completed, but I'd like to be able to access that info, as it's happening, externally. Sort of a workaround for AppleScript not being able to do a progress bar.