The script is intended to provide an alternative to the Quicklook
scripts. If your default action for applescript is not run then it is
not much useful to you. For others, pressing return after watching the
quicklook preview will exit Quicklook. No need for mouse or Finder
window. Hopefully, this script provokes more thought to improve it.
save this script as Quicklook.scpt in ~/Library/Application
Support/Quicksilver/Actions/
on open of theFile
set thePath to quoted form of (POSIX path of theFile)
set thecmd to "qlmanage -p " & thePath
do shell script thecmd & "> /dev/null 2>&1 &"
set closepath to "path:to:quicklook kill.scpt" as alias
return closepath
end open
save this script anywhere you like and give the path in the above script:
do shell script "killall qlmanage"
instead of using killall, pid must be used, but i am not a shell
scripter, so I don't know how to do it. I would like to know though!