i wanted this trigger so that i could work (take actions) with the
results which cannot be done in spotlight.
But there is one more advantage. i can easily narrow down my results
by searching within the results (without having to open the big
spotlight window) and also using QS matching algorithm.
But i have been unable to set up a trigger. i am talking about the
first script in your last post.
I have checked it many times: the script when run after opening in
Script Editor works fine. But when i run the trigger (nameofthescript
>> run), it brings up the dialog box asking me to search but it does
not return the results. QS hangs. I have tried different shortcut keys
and even the function key as a hotkey. I have also tried using the
same search query that i used after opening the script from the Script
Editor and running it.
Secondly, if i search for "Safari", QS opens instantly with 890
results but if i type something weird like "a", i get the error
sh: line 2: /usr/bin/qs: Argument list too long
which probably means there is some limit upto which the maximum number
of results that can be displayed. Not much of my concern though.
I just want the trigger to work.