QuickLook from Terminal


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. qlmanage -p *.jpg >& /dev/null
  2.  
  3. flags of interest include -h (displays a help message) -t (thumbnail generation) and -f (a zoom factor to display with)

URL: http://www.tuaw.com/2007/11/05/terminal-tip-use-quick-look-from-the-leopard-command-line/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.