Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quicklook support request #23

calc opened this issue Dec 5, 2009 · 4 comments

quicklook support request #23

calc opened this issue Dec 5, 2009 · 4 comments


Copy link

calc commented Dec 5, 2009

Please add quicklook support with customizable view size (e.g, how does
Bibdesk - - do it for previewing PDF files?)

Copy link

ghost commented Dec 16, 2009

Here's another QuickLook script, which doesn't open a Finder window for files. This one lets you use the comma trick to QuickLook files in different directories at once too, though they do all open in different windows.
By default it opens windows for all selected files at once, but you can get it to open files one-by-one instead if you remove the stuff in the last set of quotes on the 'do shell script' line.

on open these_items
    repeat with i from 1 to the count of these_items
        set this_item to (item i of these_items)
        set this_path to (POSIX path of this_item)
        set AppleScript's text item delimiters to "'"
        set path_components to every text item of this_path
        set this_path to ""
        set number_of_components to count of path_components
        repeat with x from 1 to the number_of_components
            set this_path to this_path & (item x of path_components)
            if x is not number_of_components then set this_path to this_path & "'\\''"
        end repeat
        do shell script "qlmanage -p '" & this_path & "' > /dev/null 2>&1 &"
    end repeat
end open

Edit: I updated the script so it properly handles files with apostrophes in the name. There's probably a much better way to do that, but this works for now.

Copy link

calc commented Dec 24, 2009

Neither of these scripts allow me to set the quicklook window size.

I have been using the following script for a while (which is also similarly deficient):

on open of theFile
set thePath to quoted form of POSIX path of theFile
do shell script "qlmanage -p " & thePath
tell application Quicksilver to hide
end open

Copy link

Yes, this is something we'd like to add. See Bug #115 for more information.

I'll close this one now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants