Hi Mason,

Interesting one you have here. Your easiest option might be to create an
AppleScript using 'on terms from Quicksilver'. See some examples of how to
use this in Quicksilver here:
http://qsapp.com/wiki/AppleScripts#Text_Action_AppleScripts
(And add any new AppleScripts you create to the wiki!)

Alternatively, if you want the "run in Terminal…" action to work, open the
following file:
~/Library/Application
Support/Quicksilver/PlugIns/com.blacktree.Quicksilver.QSTerminalPlugIn.127.qsplugin/Contents/Info.plist

Then open the 'QSActions' array, look for the
"QSCLTermExecuteWithArgsAction" dictionary, and change the
"indirectOptional" to NO

On 30 July 2012 05:08, mason k <[email protected]> wrote:

> I want to create a trigger that prompts me for text and executes a shell
> command of my choosing with that text as a shell-escaped argument to that
> executable.
>
> For instance, suppose I want to use todotxt.cli.  (http://todotxt.com/).
>  I would trigger this imaginary trigger, type "5 > 4", and it would open a
> terminal and execute *t add "5 > 4"* for me.  (5 > 4 being shell escaped
> for me, so that 5 > 4 doesn't turn into some weird bash redirection
> command).
>
> Or if necessary, I can create a .sh file which executes "t add" on my
> behalf, passing in the extra arguments.
>
> I've tried a few things.  I can select an executable file in the first
> pane, select the "Run in Terminal" verb in the second pane, tab into the
> third pane, and type some additional arguments for this function.
>
> However, I can't trigger that sequence. If I try  to, the trigger will not
> prompt me for additional arguments, but just run the version with whatever
> was in the third pane when I created the trigger. Is there a way to trigger
> it with prompting? If necessary I will edit a plist to get this working.
>
> Additionally, this way isn't shell escaping the arguments.  Meaning I
> can't add "5 > 4" to my todolist app - instead I get bash mucking with my
> arguments. I don't have much hope that this is an available feature of any
> current plugin, but I have to ask.
>
> I've also tried "literal text" in the first pane and "run in terminal" in
> the second pane, but I can't trigger that either - and anyway, I would have
> to type the whole executable each time, which I don't want to do.
>
> Best regards,
>
> Mason
>
> -- You received this message because you are subscribed to the Google
> Groups Quicksilver group. To post to this group, send email to
> [email protected]. To unsubscribe from this group,
> send email to [email protected]. For
> more options, visit this group at
> https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

-- You received this message because you are subscribed to the Google Groups 
Quicksilver group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send 
email to [email protected]. For more options, 
visit this group at 
https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

Reply via email to