Hey Bambi,

> AppleScripts are probably not an option.  Since using them involves 1) a key 
> combo

You're already using a key-combo.

> 2) loading an applescript 3) causing it to be interpreted 4) sending messages 
> to BBEdit and getting BBEdit to respond, I suspect they're probably too slow 
> and are probably easily confused.

You're mistaken.  AppleScript is very, very fast for most things in BBEdit.

Scripts can be written to be far more discriminating than my two very simple 
demos.

> Under 9.6.3, if I cmd-option (left or right) bracket

You said Cmd-Ctrl in your first message, so I wasn't completely sure of what 
you were doing.  I get it now.

> ...So effectively, I need a circular queue...

Okay.  I get the picture.

Do you want a separate run-log for every window you run something from?  Or do 
you want a universal log that is open in each window you run something from?

I think the former is doable.  I think the latter isn't.

> By the way, I did try this script, and while I don't know what went wrong, it 
> worked... and then it crashed BBEdit.

That makes little sense.  Please send Bare Bones the crash log.

I just put a repeat loop around the script and had it run 50 times.  I ran this 
with a keyboard shortcut several times with no problem.

Which version of OSX are you using?

What version of BBEdit did you use?

How did you run the script?

> And then it didn't work.

When run from where?

> I do sometimes use Applescript, I've never considered it "ready for prime 
> time" (which is really too bad because the idea of built-in scripting for all 
> apps is a nobel one!)

The problems you've experienced are atypical.

I've used AppleScript on a massive level for 20 years.  It isn't perfect, but 
it's a huge productivity lever - especially with one osax added for regex 
support.  (Satimage.osax)

--

You can manually move the run-output window into the window you're running 
from, or it can be done via script.

------------------------------------------------------
tell application "BBEdit"
  if name of front window = name of window 2 & ".log" then
    set f to file of front document
    close front window with saving
    open f opening in front window
  end if
end tell
------------------------------------------------------

The script above depends upon the run window being logged to its own log rather 
than to "Unix Script Output.log"

I've got a query in to Bare Bones about this, because I've just discovered an 
issue - but I think your need can be accommodated right now with a variation of 
the script above.  Yes, you'd have to hit one extra hotkey - but that's life.

I have asked them about making it possible to dock a window-specific-log to its 
run-window, which I think is a reasonable feature request.

I'll know more when BB gets back to me.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. 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].
To post to this group, send email to [email protected].

Reply via email to