Hey Charlie,

I just posted my other solution before I saw yours.

I hadn’t thought of using Perl’s `open` - too focused on the bbedit commandline tool! I’ll see how —-append works when used this way…

Thanks!

On 5 Apr 2021, at 16:40, Charlie Garrison wrote:

On 6 Apr 2021, at 3:42, Bruce Van Allen wrote:

I’ve tried variations on pipes etc, and this might be a limitation of Perl’s `system` function.

Correct, don't use `system`. Try this instead of the `system` line:

```
open(my $bb_fh, '|-', "bbedit —-worksheet —-append $worksheet_filename")
    or die "Couldn't open a pipe to bbedit: $!";
print $bb_fh $initial_content;
```

Or at least something close to that. See here for more info:

- https://perldoc.perl.org/perlopentut#Opening-a-pipe-for-writing

-cng

--

    Charlie Garrison                   <[email protected]>
    Garrison Computer Services      <http://www.garrison.com.au>
    PO Box 380
    Tumbarumba NSW 2653  Australia

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/4744F087-9E92-4891-9F99-E9299154836A%40garrison.com.au.

Thanks,

    - Bruce

_bruce__van_allen__santa_cruz__ca

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8C893F8F-850D-4AB1-9866-34C32EDD9A63%40cruzio.com.

Reply via email to