On 29 Sep 2017, at 6:10, Hermann Klocker-Mark wrote:

I want to execute a shell script with my current selection as a parameter
to a shell script.

For example I select a word somewhere (like *monkey* e.g. in notepad) and Quicksilver executes my own shell script (e.g. *tid.sh*) with the selection
as parameter, that would be a call

tid.sh "monkey"

*returning the result* to me.

There’s a `Run […]` action that almost does what you want, but the executable goes in the third pane and the argument(s) in the third. It should be possible to add a reverse of that to the plug-in, but it doesn’t currently exist.

Your best bet at this point is probably to create an [AppleScript action][asa]. The [Mosh script][mosh] looks pretty similar to what you want to do. You just need to make the script return the results of the shell command. [Another script][return] has an example of that.

[asa]: https://qsapp.com/wiki/AppleScripts#Pane_2_AppleScript_Actions
[mosh]: https://qsapp.com/wiki/Mosh_(AppleScript)
[return]: https://qsapp.com/wiki/Run_command_in_shell_with_arguments

--
Rob McBroom
http://www.skurfer.com/

--
You received this message because you are subscribed to the Google Groups 
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.

Reply via email to