Using Quick Look from the Command Line

Jul 13, '10 07:30:00AM

Contributed by: renaultssoftware

Sometimes you need to Quick Look a file, but you're in Terminal or iTerm or something. If you're dealing with images, you want to see them before you do anything. But you don't want to use the open command. That's where qlmanage comes in.

qlmanage is a CLI tool that, from the manpage, is a 'Quick Look Server debug and management tool.' It's got more options than described below, but those are for developers debugging QL.

The -p option generates a preview, as if you'd tapped the Space bar in the Finder. The -t option generates thumbnails, like in Coverflow or Info For. Here, then, are typical uses of the tool:


[crarko adds: I tested this, and it works as described. The Quick Look window that opens displays a [DEBUG] tag in the title bar along with the file name. As mentioned in the comments section, this previous hint shows this was also available in 10.5. ]

Comments (14)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100712090451517