That's excellent.  You got it spot on.  Works like a charm.  

Thanks

On Monday, December 15, 2014 2:53:13 PM UTC-5, Grail wrote:
>
> The first method that comes to mind is to use a Unix pipe:
>
> echo ‘foo’ | bbedit
>
> Thus you would have your Ruby script output the text to be edited, then 
> pipe that to bbedit:
>
> ruby_script | bbedit
>
> Perhaps I misunderstood the question?
>
> On 16 Dec 2014, at 05:05, Rich F <[email protected] 
> <javascript:>> wrote:
>
> Hi folks.
>
> I’d like to have BBEdit receive text that I have parked in a Ruby variable 
> coming out of open-uri.  Is there a way to create a new document that’s 
> unsaved, then copy that variable to that document?  I’m assuming I’ll use 
> the bbedit command line interface for this, but I can’t seem to find any 
> way of targeting a new document.  Scratchpad might be an option, but it’s 
> not elegant.  
>
> Thanks for your input.  
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "[email protected] <javascript:>" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" 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].

Reply via email to