On 02/07/2019, at 21:38, Rich Siegel <[email protected] 
<mailto:[email protected]>> wrote:
>>> Have you tried "bbedit ."?
>> 
>> Sorry, I misspoke. I meant "shell worksheet" not "disk browser" (But
>> yes, that is cool).
> 
> Oh.
> 
>    ls -l | bbedit --worksheet


Hey Rich,

That's spiffy!

It would be nice if you could do this as well:

bbedit --worksheet ~/Downloads

OR

echo 'ls -l' | bbedit --worksheet ~/Downloads

But then again that's easy enough to do with AppleScript:

----------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2019/02/08 17:36
# dMod: 2019/02/08 17:36 
# Appl: BBEdit
# Task: Create a New Shell WorkSheet with a Given Working Directory and Starter 
Commands.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Create, @Shell, @WorkSheet, @Working, 
@Directory
----------------------------------------------------------------

set dirPath to "~/Downloads"
set LF to linefeed

tell application "BBEdit"
    set newShellDoc to make new shell document
    # Adjust size and position of the worksheet.
    set bounds of front window to {0, 45, 960, 1196}
    tell newShellDoc
        set its working directory to dirPath
        set its window's text to "# Working Directory:" & LF & "# " & dirPath & 
LF & LF & "ls -l"
    end tell
end tell

----------------------------------------------------------------

--
Take Care,
Chris

-- 
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 to the group.
Follow @bbedit on Twitter: <https://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].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to