I wrote:
> Basic sizing/positioning scripts are handy, especially since once
> you have the general scheme and coordinates worked out for one
> program, for example the Mac Finder, you can fairly easily adapt
> them for other programs you use windows in as well, InDesign in
> particular included (though I'll have to make adjustments there for
> the panels and tool pallette [sic]).
Sorry about the spelling error, but I continue. Another nice aspect of
this whole window-placement thing - disregarding that it's apparently
possible to blow several days getting it (back) together - is that the
QuicKeys shortcuts generally don't need to be re-created or even
modified. Once you have them, they'll go on triggering the modified
scripts they're based on the same as they did before. So I just open
the script files from last night, and hopefully once I get the
coordinates for the laptop screen entered I'll be good to go - or at
least a little further down the road.
I notice first off that "set bounds of layout window 1" is still
toggling to an unrequested full-screen window position, but this is
immediately one of those cases I imagined in which such a toggle could
be useful. Namely, it hands the optimal full-screen zoom to me (with
my tool-palette and panel positions) without my having to determine or
approximate it for myself. On a 1440 x 900 pixel screen (15" MacBook
Pro), and it gave me {69, 33, 900, 1365} as default zoom with my panel
configuration, the width of which I'm chopping down to 1151 pixels -
dubiously, since the screen is already relatively small, but I want to
at least try (eat that, prescriptivists) conserving a column of space
on the right for expanded panels as I did yesterday on the 24" office
screen.
"Showing my work", as a schoolteacher would say, on the coordinates:
Zoom InDesign Window to Main Screen.scpt
{69, 33, 900, 1151}
For any who may hot have dealt with InDesign window positions before,
this is {y1, x1, y2, x2}, confusingly different from the usual {x1,
y1, x2, y2} coordinates of other programs.
Zoom InDesign Doc Window to 1 Upper Left.scpt
{69, 33, 484, 591}
900 - 69 - 1 (pixel between windows) / 2 + 69 = 484
1151 - 33 - 2 / 2 (pixels between windows) + 33 = 591
etc. w/foll.
Zoom InDesign Doc Window to 2 Upper Right.scpt
{69, 593, 484, 1151}
Zoom InDesign Doc Window to 3 Lower Left.scpt
{485, 33, 900, 591}
Zoom InDesign Doc Window to 4 Lower Right.scpt
{485, 593, 900, 1151}
Zoom InDesign Doc Window to Left.scpt
{69, 33, 900, 591}
Zoom InDesign Doc Window to Right.scpt
{69, 593, 900, 1151}
Zoom InDesign Doc Window to Top.scpt
{69, 33, 484, 1151}
Zoom InDesign Doc Window to Bottom.scpt
{485, 33, 900, 1151}
Now I plunk these into, for example:
tell application "Adobe InDesign CS4"
set Disp to (do shell script "system_profiler SPDisplaysDataType |
grep Resolution | awk '{print $2, $4}'")
if Disp contains "1920 1200" then --office screen 1920 x 1200
set bounds of layout window 1 to {69, 33, 633, 829}
else --MBP screen 1440 x 900
-- ***HERE***
set bounds of layout window 1 to {69, 33, 484, 591}
end if
end tell
[...]
And yeah, they all work. Groovy. Kinda small, though, so I might
imaginably expand them back out to the right at some point.
That leaves the zoom to second-screen quadrants. I'll do those in the
office later, also for Finder, Mail, Script Editor, and maybe Safari
and/or Text Wrangler.
Roy
--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/InDesign/Browse/
Manage your subscription: http://www.ListSearch.com/InDesign/