In our previous episode (Thursday, 14-Feb-2013), Patrick Woolsey said: > At 08:36 -0700 02/14/2013, LuKreme wrote: >> I have a text factory that does a bunch of stuff and ends up with a file >> that looks like this: >> >> cd /some/path >> mv this.file1 that.file1 >> mv this.file2 that.file2 >> mv this.file3 that.file3 >> >> (or maybe not mv, maybe cp, rysnc, rm, scp, whatever) >> >> How do I execute those lines? I mean, I could write the file out and then >> do "source /path/to/file" but I suspect there is a better way? I'd prefer >> to not leave BBEdit, and it would be nice if it was automated. >> > > As a direct action, you could copy those lines, create a new shell > worksheet, then paste them in and execute them. > > Automating the process may be a bit more involved though, and will also > depend on your starting conditions.
Well, I start with opening a file or pasting a bunch of text into a file and then applying the text factory to that text. I don't see a way to tell the text factory to paste that text into a shell worksheet, though that would work. My target for the text factory is "open documents" since "current frontmost document only" doesn't seem to be an option. -- I'd like to move us right along to a Peter Gibbons. Now we had a chance to meet this young man, and boy that's just a straight shooter with upper management written all over him. -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> 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]. For more options, visit https://groups.google.com/groups/opt_out.
