On Apr 19, 2012, at 5:37 AM, Francis Nugent Dixon wrote: Hi from Beautiful Brittany,
Mac Lion users may know already about Window parameters (position, size, etc.) being forgotten when you reboot the system.
Until this stupid situation is resolved, is there a remedy ?
I am looking for an AppleScript that can redefine all window parameters (for any existing windows), assuming that my window names give specific information concerning their values.
Am I asking too much, or is Applescript as powerful as they say ........ :>)
My attempts into Applescript have been quite limited, which explains why I would not even know where to start solving this problem.
Any help much appreciated
-Francis
Francis,
I have a script that does that. Been growing it for several years.
I start with a text lookup table that lists the App name and the desired location.
Since I have to deal with two monitors and a laptop I then get the screen dimensions.
I activate the script with a iKey command.
With most apps it's a simple "set bounds to {newL, newT, newR, newB}. Some apps can't be set and some need to be set by width and height.
The Finder is the most complex as the windows size and shape has many variables. I limit my actions to only a List view, my preferred view.
HTH,
Robert Poland - Fort Collins, CO
|