On 11/6/16 10:39 PM, Patrick Robertson wrote:
> Your best bet is to probably package this into an AppleScript, then
> saving and creating a trigger for “My AppleScript -> Run”
>
> The script could be something like (if you’re getting your text from
> some terminal program. Otherwise there’s no need for the ‘do shell
> script’ part)
>
> *tell* /application/"Quicksilver"
> *set* _text*to* *do shell script*"echo \"hello\""
> *show large type*_text
> *end* *tell*
>
I combined this with some shell scripting and the osascript command:
--- START ---
#!/bin/bash
exec osascript 3<&0 <<APPLESCRIPT
on run argv
set stdin to do shell script "cat 0<&3"
tell application "Quicksilver"
${@} stdin
end tell
end run
APPLESCRIPT
---- END ----
Save it as something like /usr/local/bin/qs_wrapand set it as
executable, then you can do things like:
$ echo foo | qs_wrap show large type
$ echo foo | qs_wrap show notification
I couldn't get "open URL" to work for some reason, and I don't really
know what else you could do with it, if anything, but there it is.
Jay
--
Jason C Penney ([email protected])
http://jasonpenney.net/
--
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.