Thanks!  I'm on a multi-monitor setup, but will test it out and try to
make it mutli-screen compatible.  Still unclear why BareBones would
remove this functionality though...

On Aug 1, 7:06 pm, Christopher Stone <[email protected]>
wrote:
> On Jul 30, 2011, at 20:14, Austin Wallender wrote:> Yes, I agree. I often 
> work with two windows side by side and multiple documents in each. I really 
> miss that arrange windows layout, especially mapped to a keyboard shortcut.
>
> ______________________________________________________________________
>
> Hey Austin,
>
> This script will produce a 2-Up (side-by-side) arrangement of the front two 
> windows.
>
> It is pretty quick and dirty, and it will only work on a single screen setup 
> at this time.
>
> Give it a try and let me know how it works for you.  If people want more 
> variety it's possible.
>
> --
> Best Regards,
> Chris
>
> --------------------------------------------------------------------------- 
> ---------------------
> #       Author: ccs
> #      Created: 2011-08-01 : 20:58
> #     Modified: 2011-08-01 : 20:58
> #  Application: BBEdit
> #      Purpose: Produce 2-Up Window Display
> # Dependencies: none
> --------------------------------------------------------------------------- 
> ---------------------
> tell application "Finder" to set {null, null, screenX, screenY} to bounds of 
> window of desktop
> set winWidth to screenX / 2
> set winHeight to screenY
> set win1Bounds to {0, 44, winWidth, winHeight}
> set win2Bounds to {screenX - winWidth, 44, screenX, screenY}
> tell application "BBEdit"
>   try
>     if (count of windows) ≥ 2 then
>       if class of window 1 is project window and class of window 2 is project 
> window then
>         set bounds of window 1 to win1Bounds
>         set bounds of window 2 to win2Bounds
>       else
>         beep
>         error "Windows incompatible with request!"
>       end if
>     end if
>   on error errMsg number errNum
>     set sep to "=============================="
>     set e to sep & return & "Error: " & errMsg & return & sep & return ¬
>       & "Error Number: " & errNum & return & sep
>     beep
>     display dialog e
>   end try
> end tell

-- 
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>

Reply via email to