Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use as a tool for code testing Apps
I enjoy programming for a variety of fields, and am familiar with using the command line and Terminal for many of the associated tasks with the edit-compile-run cycle used for many languages. However, the longer I use the Mac, the less I want to use the Terminal.

One way to fix the problem is to let your editor or AppleScript take care of the compiler running, and even display if the output is going to be small. However, if you're trying to read the log from a larger program's execution, you may want to try opening the log file with You won't accidentaly edit the output, and when you run your test, automatically figures out that the file has been updated and reloads it.

BTW, these file can be any kind of plain text file (not just ones with the ".log" extension).
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

Use as a tool for code testing | 3 comments | Create New Account
Click here to return to the 'Use as a tool for code testing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use as a tool for code testing
Authored by: albertoricart on Nov 17, '05 08:16:43AM

Haha! - This is a great hint. While there are many apps that detect when the file is changed from underneath, the ability to mark the file and do other things is great. As a developer, I end up eating log files more often than not, because it is an useful way of testing/debugging. This hint makes it more palatable.

The only bad thing is that you cannot drag files into Console's dock icon to open them, but that should be easily fixed with a couple changes to its Info.plist.

[ Reply to This | # ]
Use as a tool for code testing
Authored by: adrianm on Nov 17, '05 09:30:45AM
Just hold opt+cmd when you drop on the icon - it will load it anyway.

This is prob a hint in itself - you can generally drop anything on anything if you hold opt+cmd....

The Console app is really great though, and much more useful than tail -f from terminal, IMO.

I have an alias in my shell for easy opening of files in Console:

alias con='open -a Console '
This is in zsh, but I believe the syntax is the same for bash.

I then just type con logfile to tail the file.

[ Reply to This | # ]

Use as a tool for code testing
Authored by: ileadyouth on Nov 18, '05 06:09:06AM

This is a great hint, I have been using it for a while now when working with logs for my web development.

I can open access/error logs from apache and drag them to the dock icon and they open up - what kind of log files arent working for you? These are all with the extension .log, and Tiger already has it built in to handle those for as apache is already installed in the OS (so they are the same log files - even if using an external web sever)

[ Reply to This | # ]