Bringing the "Unix Script Output" log to the front automatically.

73 views
Skip to first unread message

Philip Sharman

unread,
Nov 17, 2020, 2:22:33 PM11/17/20
to BBEdit Talk
Is there a way to bring the "Unix Script Output" log window to the front automatically when I ran a script?

(I thought BBEdit did so, but now I find that it does not.  I'm not sure if something changed or I'm misremembering.)

Thanks.


David Wagner

unread,
Nov 17, 2020, 3:40:01 PM11/17/20
to BBEdit Talk
Noticed the same thing. Run a script and the log would come up. Now have to find to bring to the front... 

Wags ;)
WagsWorld
World of Perl
Hebrews 4:15
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" 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 bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/8f2d3076-23d8-41e9-a99a-d3f9c4e0e380n%40googlegroups.com.

jj

unread,
Nov 20, 2020, 4:41:14 AM11/20/20
to BBEdit Talk
As of BBEdit version 13.5.2 (415056, 64-bit Intel, sandboxed), I observe a similar behavior.

When a #! script is executed, if the "Unix Script Output.log" window is not open, BBEdit will open it and bring it to the front.
But if the  "Unix Script Output.log" window was already open, BBEdit won't bring it to the front.

Might be related to this change.

================================================================================
Version 13.2 (415007)   (2020-08-18)

Additions
---------

o   (none in this build)

Changes
-------

  • [NFR] [DOC] Made a change to #! script output behavior as
    follows: if a script produces no output, the log will so note.
    However, if the log is *not* open, BBEdit will not open it. If
    the log *is* open, BBEdit will update the log's window, but will
    not bring it to the front.
...
================================================================================

A (damn slow) workaround is to use an osascript call at the end of your script to force BBEdit to bring the window to the front:

#!/bin/bash

ls -al . ;

/usr/bin/osascript <<END
tell application "BBEdit" 
    try
        tell window "Unix Script Output.log"
            activate
        end tell
    end try
 end tell
 END
 
Best regard.

Jean Jourdain

Reply all
Reply to author
Forward
0 new messages