On Apr 16, 2009, at 4:11 PM, Serenity wrote:
I am looking for a way to use the "Trigger" via the QS catalog instead
of hotkeys. I can define the action, I want to take easily using the
Trigger window. I just don't want to assign a hotkey to it - I would
rather its name be included in the QS catalog so I can activate it
like normal catalog items.
Bascially I have several apps for which I would like to be able to do
<activate QS> <abbr> <enter>, and have the result be "Open selected
finder items with <app>".
For example, I have a trigger defined that as "Item: Finder
selection," "Action: Open With," and "Target: TextMate." This opens
selected finder items with TextMate. I have 8-10 of these I'd like to
define, but rather than give them all unique hotkeys, I'd just like
them to show up in my catalog with names like "Open With TextMate,"
"Open With BBEdit," etc, so I can assign them QS abbreviations like
"owtm" and "owbb".
Is this possible? It seems like to get this, I have to go write
applescripts when all the functionality I need is already right in QS.
This one has me thinking lots of different things:
If you're willing to type "owtm" is it so much more to type "ow<TAB>tm"?
The most straight forward way of getting this to work I can think of
is creating apple script actions that open the file(s).
There isn't a catalog source that indexes triggers. I'd guess you'd
want such a thing to treat the trigger as a command object and ignore
the trigger type part (i.e., the hotkey). Triggers of command objects
aren't quite stable enough yet (though maybe soon they will be).
I think the way I'd want to do this would be to define a trigger:
Quicksilver Selection proxy object, Open File..., Finder Selection
proxy object. Then you could activate QS, type the name of the app and
hit the single trigger key to do the rest. But I don't think that
works, particularly the Quicksilver Selection proxy object.
But then again, if you're using Finder Selection, that means you've
already selected the files in the Finder, so why not just right-click
on them and use the context menu for Open With... Since you don't want
to use separate hotkey triggers, that's probably faster then switching
to the keyboard to type.
You might be able to use quicksilver commands saved in the file
system. Look up Save Command to File... in the manual. Save commands
like Finder Selection, Open With..., TextMate, put in the file system,
create a catalog source to index them. Then select the files you want
in the finder, active QS, type enough of the saved command to select
in the first pane and use the Run action.
Howard