Search

Top Posts

Comments

  • David: thanks! And Hey I wasn’t calling you a liar just that the image may have been a fake and i said that i...
  • Dagaza: Thanks for the post, itunes also has an option to “Show Exact Duplicates” meaning you don’t...
  • maria Nicolaou: I have a Mac Os X version 10.5.8 and I was wondering if I can change my keyboard to a light one!
  • Mike: Holy cow, I want that! I have 3 monitors and it has greatly increased my productivity, I think it is an...
  • Zachary Waldowski: The Nvidia 9400M, which is on anything current but the high-end MacBook Pros, high-end iMacs, and...

Categories

Recent Posts


Use Quick Look from the command line

Quick Look is a nice feature added in 10.5, I use it often for glancing at the content of various documents and it certainly beats launching an application. If you’re an avid command line user though, you may be browsing through a directories contents and wondering just what is that JPG or DOC file. Wonder no more, because you can easily use Quick Look from the command line:

From the command line, use the following syntax:

qlmanage -p filename.jpg

This will launch a Quick Look window with whatever file is specified as ‘filename.jpg’, the file type can be anything that Quick Look is compatible with (which seems to be just about everything).

The qlmanage command has other abilities, here is the full flag list, courtesy of qlmanage -h:


Usage: qlmanage [OPTIONS] path...
-h Display this help
-r Force reloading Generators list
-p Show a preview of the documents
-t Show thumbnails of the documents
-s size Size for the thumbnail
-f factor Scale factor for the thumbnail
-c contentTypeUTI Force the content type used for the documents
-g generator Force the generator to use

Note that you can have Quick Look launch in the background by using the following command, allowing you to continue using the Terminal as usual:

qlmanage -p filename.jpg &

Posted by: Bill Ellis

Share

Save big on Mac Deals from Amazon.com

Comments:

Comments: 5

Comment from Brett A. Rogers
Time: December 26, 2007, 7:42 am

That is just fantastic! Thanks for that tip.

Pingback from macfidelity » 10.5 ::: How to use “Quick Look” from cli
Time: December 31, 2007, 1:37 pm

[...] Quote from the article: Quick Look is a nice feature added in 10.5, I use it often for glancing at the content of various documents and it certainly beats launching an application. If you’re an avid command line user though, you may be browsing through a directories contents and wondering just what is that JPG or DOC file. Wonder no more, because you can easily use Quick Look from the command line: [...]

Comment from Colon
Time: March 7, 2008, 7:24 pm

Awesome tip… I was looking for something like this… good work!

Comment from pharmacy news
Time: August 22, 2008, 10:30 am

I have been looking for sites like this for a long time. Thank you!

Comment from advoldfuddy
Time: October 8, 2009, 10:01 pm

А как вы думаете, можно открыть на сайте-блоге раздел или типа того. Там можно будет комментировать самые горячие статьи твоего блога:

Write a comment






December 24th, 2007