I am writing to a logfile in the ~/Library/Logs/DocumentLogs/ directory
I am doing this:
--open and write logfile entries
set writetoTheThing to open for access theFile with write permission
write (logEntry & return) to writetoTheThing starting at eof
close access (writetoTheThing)
and its working. Log files get written to....
The file is being opened "with write permission" and Get Info shows that I am the owner, etc.
However, the Event Log shows:
the Event: open for access alias "Macintosh HD:Users:lenny:Library:Logs:DocumentLogs:DocLog_2015_03.log" with write permission
The Event Result says: a privilege violations occurred (errAEPriviledgeError -10004)
How do I get around this?
TIA