Instead of returning the results of the script to Quicksilver, have the script paste the results. Adding this to the end of your script should do the job (replacing $foo with whatever is appropriate in your script, of course):
printf $foo | pbcopy osascript -e "tell application \"System Events\" to keystroke \"v\" using command down" Note that we are using printf instead of echo because echo automatically inserts a newline at the end of the text it outputs, which is not what we want in this case. On May 29, 8:52 am, jrh <[email protected]> wrote: > Hi all, > > Sorry if this is just too easy but I have been trying to do it with no > luck... > > I am trying to concatenate several commands in one trigger. What I > want to do is get the selected text of the current window and send it > a shell script as input. Then paste the output of the script into the > current window. I can do it in the command window in several commands > by getting the selected text and pass it to a script with leaves the > output in the command windows and I can paste it as text. > > However, is it possible to do it in one trigger?? > > Regards,
