Descripton: View files in Leopard's Quicklook.
Where to save: ~/Library/Application Support/Quicksilver/Actions/
Quicklook.scpt
Usage: Select a file in Quicksilver, and then run this action. A
Finder window will open, revealing the file, and then Quicklook will
be invoked to show you a preview of the file.
Code:
on open these_items
tell application "Finder"
activate
select these_items
tell application "System Events" to key code 49
end tell
end open
----
This alternative version does not require a Finder window to open.
However, this method of using Quicklook is not as functional as when
used from Finder. So it is a tradeoff: a fully functional Quicklook
with a Finder window using the script above, or a partially functional
Quicklook without a Finder window using the script below.
Code:
on open these_items
set these_paths to ""
repeat with i from 1 to the count of these_items
set these_paths to these_paths & space & (the quoted form of the
POSIX path of (item i of these_items))
end repeat
do shell script "qlmanage -p " & these_paths & " &> /dev/null"
end open