Good afternoon and please pardon the obvious :-) but is there any reason not to just create a script which compounds the desired commands and run that within BBEdit?
======== #!/bin/sh bbedit -c ~/Desktop/only_one.txt echo "Nullam.txt" | bbedit --append ======== Regards, -- Patrick > On Oct 09, 2024, at 15:26, Jan Erik Moström <[email protected]> wrote: > > Hi all, > > I'm trying to automate a few things and I'm trying to figure out if there is > a way to, in one command, open and/or create a specific file and add some > text at the end. > > I don't know if I'm missing something, but I can't figure out how to do it. > > With "bbedit -c filename" I can create the file > > With "bbedit --append" I can pipe some data to bbedit that will appended to > the active document (so I would need to open it first) > > Is there some way to do this in one operation or do I need two operations? > -- This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "[email protected]" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@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/BD9A454D-A355-4DF5-9B43-079E6822EA9A%40barebones.com.
