Terminal Tip: Use Quick Look from the Leopard command line
TUAW reader Shaun Haber sent us a link to his personal blog with a great post about using Leopard's Quick Look from the command line, which is wonderfully handy for anyone who spends a chunk of their day in Terminal. The
qlmanage utility gives you direct access to many Quick Look functions; of specific interest is the -p flag. This option displays the Quick Look generated preview for any file. So if you tell it to
qlmanage -p foo.png, the image immediately pops up in a Quick Look pane.
Even better, Quick Look supports slide shows. So if you
cd into a folder of images and run
qlmanage -p *.jpg, you'll be rewarded with a full-on presentation of your pictures.
Other qlmanage flags of interest include -h (displays a help message) -t (thumbnail generation) and -f (a zoom factor to display with).
The downside of qlmanage is that it's full of NSLog-style messages. Haber recommends you pipe the output into /dev/null as follows:
qlmanage -p *.jpg >& /dev/null.
Deals of the Daymore deals
Software Updatesmore updates
- Microsoft Office for Mac 2011 Update 14.3.4
- Pixelmator 2.2 available with over 100 new features and improvements
- DabKick for iPhone lets you share photos, watch videos and now listen to music in real-time
- Google Now added to search app on iPhone, iPad
- GateGuru for iPhone has been updated and greatly improved
- Twitter updates its OS X client