Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 1.44 / 5
  You rated: 3 / 5 (9 votes cast)
 
[19,910 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 whoever posted them. This site is not responsible for what they say.
10.5: Automatically Quick Look certain downloaded files
Authored by: vansie on Mar 26, '08 08:16:01AM

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 Mar 26, '08 08:42:20AM
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 Mar 26, '08 11:06:37AM
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 Mar 26, '08 08:42:49PM

>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 Apr 03, '08 02:23:26AM

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 Oct 29, '09 03:44:34AM

Here is an Intel compatible firefox PDF viewer... http://code.google.com/p/firefox-mac-pdf/



[ Reply to This | # ]