Jul.24,Using Quick Look from the Command Line

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:

  • qlmanage -p '/Users/Name/Music/Player.mp3'
    Generates a QL window in Terminal.
  • qlmanage -t '/Users/Name/Pictures/Image.png'
    Generates a window with a thumbnail.
  • qlmanage -p '/Users/Name/Documents/Nurse.doc' '/Users/Name/Movies/Liters.mpg'
    Generates a QL window in Terminal with a page-through option to see both docs.


评论: 0 | 引用: 0 | 查看次数: 205
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭