I am trying to make a Quicksilver action that will take a file and show the quick look preview of it. So far I have (1) created a bash script, (2) created an applescript that calls the bash script, and (3) placed the applescript in the Actions folder for Quicksilver.
It works, but after the quick look pane is invoked Quicksilver remains the foremost application, in front of quick look. One can easily click on the quick look pane and bring it into focus, but is annoying. Any ideas on how to prevent this from happening?
Bash
Applescript
It works, but after the quick look pane is invoked Quicksilver remains the foremost application, in front of quick look. One can easily click on the quick look pane and bring it into focus, but is annoying. Any ideas on how to prevent this from happening?
Bash
Code:
#!/bin/bash
qlmanage -p "$@" >& /dev/null &
Applescript
Code:
on open of theFile
set thePath to POSIX path of theFile
do shell script "~/bin/ql " & thePath
end open