There are a few things here.

Actions in QS are grouped by the type of object in the first pane. This can be seen in the actions pane. Each object type (text, application, contact, etc.) has an ordered list of actions associated with it. The top most action (that is with the lowest rank number) is the default for that type. Unfortunately that means text objects can only have one default.

But there is a shortcut, without any configuration, if you bring up an object in the first pane, you can type shift-command-letter in the second pane and the top most action beginning with that letter (that is with the lowest rank value) will be run. I use this in a couple of cases:

For contacts my default action is Compose Email, but with a contact in the first pane if (while still in the first pane) I type shift-command- s then Show Contact is run. If I type shift-command-e then Edit Contact is run. Works great.

For text I have Find With... as the default action which works great for then choosing a web search to perform. But I also use shift- command-p to do Paste when I'm bringing up text from the shelf or clipboard history (with B54).

Triggers are slightly different. You can assign a trigger to perform a whole (or partial) QS command. So it's easy to say assign a (global) keystroke like control-command-s to do Safari Open. Unfortunately, when defining a trigger you have to fill in the first pane before filling in the second, so there's no way to create a trigger with a blank first pane, as you might want to enter text. But there are some tricks around that too. There's a proxy object called Current Selection which stands for the text current selected in the active application (provided it's using a cocoa text widget). So it's easy to create a trigger with Current Selection in the first pane and whatever action you want in the second (and possibly third) pane. I use a lot of triggers like:

Current Selection, Find With..., Google
Current Selection, Find With..., IMdB
Current Selection, Find With..., Wikipedia

You can also use the command-escape trick to just bring the selected text into the first pane and then type (or use the shift-command- letter trick) to select an action in the second pane, but for commonly used commands (like the three above for me), assigning a trigger is faster.

All of these are described in full, with how to configure them, in the manual:
http://mysite.verizon.net/hmelman/Quicksilver.pdf
(that bookmark entered here using shift-command-P).

Howard

On Oct 24, 2009, at 10:48 AM, AppleScript wrote:

On Oct 24, 7:34 pm, elspub <[email protected]> wrote:
I've got that, but what if you have multiple actions that you want set
default?
Not possible with quicksilver. You can only set default for each
"letter"--r for "run" action, o for "open" action in the actions
pane.

With a different trigger for each?
A trigger means ------where you set a shortcut-------a script and an
action is assigned a shortcut. So the question of "default" action
does not arise. Maybe you meant to ask something else.
When you want to set a shortcut for text-related scripts, remember
that the trigger will look something like this:
<script> <process text> <blank>
But if the third pane of quicksilver is broken like it was in B56a6
then you cannot set a trigger.


Reply via email to