douglas -

i have the same setup.

i use dragthing and the following two applescripts for when i’m desk-bound 
or mobile.

please note that there are no doubt more elegant/simple ways to do this… my 
coding philosophy has always been ‘hey, it works… STFU!  8-)'

btw… the scripts position all of my windows so i can reconfigure my 
environment with one click… happy to share other code chunks if you’re 
interested… [email protected]

bruce



============================================
when plugged into apple 27" monitor...
============================================

tell application "System Events"
tell process "BBEdit"
repeat with x from 1 to (count windows)
set this_name to (name of window x) as text
--display dialog this_name
if this_name is not "Utilities" and this_name is not "HTML Tools" and 
this_name is not "Windows" and this_name is not "Entities" and this_name is 
not "CSS" and this_name is not "Find" and this_name is not "Multi-File 
Search" and this_name is not "BBEdit Preferences" and this_name is not 
"System Events" and this_name is not "Clippings" then
tell window x
set position to {135, 21}
set size to {1372, 1078}
end tell
end if
if this_name is "HTML Tools" then
tell window x
set position to {-500, 321}
end tell
end if
end repeat
end tell



============================================
when mobile... when just on mbp
============================================

tell application "BBEdit" to activate
tell application "System Events"
tell process "BBEdit"
repeat with x from 1 to (count windows)
set this_name to (name of window x) as text
--display dialog this_name
if this_name is not "Utilities" and this_name is not "HTML Tools" and 
this_name is not "Windows" and this_name is not "Entities" and this_name is 
not "CSS" and this_name is not "Find" and this_name is not "Multi-File 
Search" and this_name is not "BBEdit Preferences" and this_name is not 
"System Events" and this_name is not "Clippings" then
tell window x
set position to {11, 21}
set size to {1200, 975}
end tell
end if
end repeat
end tell
end tell










On Wednesday, August 26, 2015 at 4:49:22 PM UTC-7, Douglas von Roeder wrote:
>
> Using BBEdit 11.1.2 with a MacBook Pro and 27" iMac as an external 
> monitor. When opening a document, BBEdit opens it to the full height of the 
> iMac screen. If I want to move the window to my MBP, I have to manually 
> resize the window. 
> Is there a way to restrict the size of a window when it opens? 
>

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