Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.5: Automatically Quick Look certain downloaded files Web Browsers
I have wanted to Quick Look files directly from the browser for a while (especially .doc and .ppt files). A switch to Firefox recently exacerbated this problem, as there is no PDF plug-in. So I wrote a simple script that monitors the Downloads directory and opens any new files with qlmanage, and thought others might find it useful. Copy and paste the code below into a file (say ql_downloaded.sh) and make it executable (chmod a+x ql_downloaded.sh). Launch the script in a separate Terminal window, then start browsing. This bit -- if [[ $i == *.(pdf|ppt|xls|doc) ]]; then -- restricts which files are Quick Looked. In Firefox, the handling option for these types of files should be set to Save to Disk. The above code should work with most any browser; it works most of the time for me, but there are still some random issues once in a while (probably due to the temporary ".part" files created during downloads). Hope you find this useful!

[robg adds: This worked for me in testing with Firefox and Safari.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[12,587 views]  

10.5: Automatically Quick Look certain downloaded files | 6 comments | Create New Account
Click here to return to the '10.5: Automatically Quick Look certain downloaded files' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Automatically Quick Look certain downloaded files
Authored by: vansie on Wed, Mar 26 2008 at 8:16AM PDT
You could probably also roll this into a Folder Action script and attach it to your Downloads folder so that it only fires when a file actually gets downloaded and save some cycles with it running indefinitely in the background.

[ Reply to This | # ]
10.5: Automatically Quick Look certain downloaded files
Authored by: lowbatteries on Wed, Mar 26 2008 at 8:42AM PDT
I downloaded the program "Quick Look Droplet" at http://www.apple.com/applescript/quickviewer/index.html - then I set Firefox (in Preferences > Content > File Types > Manage) to automatically open certain files with that application. I use this mainly for vcard files, as I view them often online but don't necessarily want to import them to address book.

[ Reply to This | # ]
Firefox PDF plug-in.
Authored by: chjones on Wed, Mar 26 2008 at 11:06AM PDT
A switch to Firefox recently exacerbated this problem, as there is no PDF plug-in.

Er, I don't mean to be annoying, but there is in fact a PDF plugin that works with Firefox. PDF Browser Plugin works in Firefox, Safari, and some other OS X browsers and "is free for not-for-profit activities if used at home or at educational institutions. "

Hope that helps in some minor way, in addition to this hint.



[ Reply to This | # ]
10.5: Automatically Quick Look certain downloaded files
Authored by: 2stepbay on Wed, Mar 26 2008 at 8:42PM PDT
>I don't mean to be annoying, but there is in fact a PDF plugin that works with Firefox. PDF Browser Plugin

PDF Browser Plugin is PPC only; never updated to Universal Binary/Intel.

[ Reply to This | # ]
10.5: Automatically Quick Look certain downloaded files
Authored by: ssserpent on Thu, Apr 3 2008 at 2:23AM PDT
When dowloaded file contains spaces in the filename the script is not working. Could someone fix this?

[ Reply to This | # ]
10.5: Automatically Quick Look certain downloaded files
Authored by: ScarabMonkey on Thu, Oct 29 2009 at 3:44AM PDT
Here is an Intel compatible firefox PDF viewer... http://code.google.com/p/firefox-mac-pdf/

[ Reply to This | # ]