Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ddoonie

macrumors regular
Original poster
Does anyone know how to make log files with textedit? In windows, you can open a new document in notepad, type .LOG, save it, and everytime you reopen it, it will stamp a date/time. How can i do this with TextEdit?

Thanks
 
Yes, I have the same question (how to do this in OSX), and I was hoping that 5 years later, someone would have an answer. Thanks!
 
I'm not a TextEdit expert, but I don't think it's possible. You could write a wrapper to append a timestamp and open the log file, but I don't believe TextEdit can do it by itself.

You could make a quick app using Automator. Add a Run Shell Script action. Pass input: as arguments. In the text box put something like:

Code:
echo >> $1
date >> $1
open -t $1

Pick an extension for your log files. I'd pick something less common than .log. Right click an example file, Get Info. Set the Open with: option to your automator app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.