Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Lion's improved Quick Look can now preview web pages. The full screen view and quick launching make it superb for peeking at a web page without having to launch a browser; which, in my case, always has many tabs to open from a previous session that I plan to revisit later.

I use an app called Choosy that will let me choose which browser to use when I click on a link [outside the browser]. This alleviates the concern that Quick Look isn't suitable as a permanent replacement. I would like to use Quick Look as a choice of browsers, but I've since discovered that Quick Look isn't an application.

Can an app be made that will workaround this road bump? An app that just opens items in Quick Look that simply functions as a way to choose it as an opener or as a choice in Choosy. My main concern is that I want to be able to open a URL in the Twitter app and have it open in Quick Look. I have been spoiled by Twitter for iOS in this regard. Also, it would also be nice to use it as the default opener for images as well.

share|improve this question
add comment

5 Answers 5

I've written an AppleScript wrapper for qlmanage called "Have A Quick Look":

http://dougscripts.com/471

However, in Lion, the qlmanage app opens and causes some conflicts with iTunes. Oh well.

share|improve this answer
add comment

I was able to create an application using Automator to open files in Quick Look. I used the "View With Quick Look" action found at this website and it works without issue for local files - right click, tell it to open using the app, and presto! Opens in Quick Look.

However - I am not sure of a way to pass this action a URL. The description states that it only takes files/folders as inputs, and to be sure, I'm not familiar with how to get Quick Look to work on something that isn't part of the filesystem.

I was thinking that perhaps you could download a copy of the page and Quick Look that, but at that point you could just open it up in the browser.

share|improve this answer
add comment

This URL-previewing functionality does not appear to be based on Quick Look, rather it's a Data Detector. As such, there's unfortunately no programmatic way to activate it.

However, you could make a simple app which previews a page in a web view, rather than trying to use the existing system.

share|improve this answer
add comment

It does not seem to be an app. Rather, it is a framework: /System/Library/Frameworks/QuickLook.framework/. Check out the qlmanage command, and notice that /usr/bin/qlmanage is a symbolic link pointing inside the framework.

It might be possible to create some applescript that runs qlmanage. Then you could save the script as an application (from Applescript Editor) and use that as your file opener.

share|improve this answer
add comment

Do you want it to work similar to Quick Look in Mail for URL's included in emails? If you investigate how OSX mail works you should find an answer. I have looked for a framework that will allow me to do this for some time now, I there will probably be something that can help you in the OSX developers site, there is a lot of sample code that apple provides, this code might include an example of how to use the Quick Look framework, but there are 372 examples to sort though. Here is the developers page for the Quick look framwork

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.