Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Move and resize app windows via AppleScript System
Snow Leopard only hintConcerning the Finder move/resize scripts from this previous hint, there are some issues in Snow Leopard (and perhaps Leopard).

When resizing a window, it will usually not go beyond the edge of the Dock. Even when the Dock is hidden, there will still be a four-pixel gap between the window and the display's edge. This will cause some of the previous scripts to fail. (They'll keep trying to place the window's edge beyond the system's tolerance).

I've updated the scripts to deal with this. You can get them here.

Make sure 'Enable access for assistive devices' is checked in the Universal Access System Preferences panel., and check the original post for usage. The scripts have new names, as the old ones were poor! If you have keyboard shortcuts for these in Quicksilver, you'll need to redirect them to the new scripts.

The Finder window 1 remember position script seems unnecessary in Snow Leopard, so I discarded it. The window resize behaviour can still be a little quirky around the edge of the Dock -- a result of not knowing where the Dock really is using only AppleScript, brain.

A few tips:
  • If the Dock is on the left and you want the edge of the window against the Dock, hide the Dock (Command-Option-D), move the window to the display's edge, and show the Dock (Command-Option-D again.)
  • The window will still move (as opposed to resize) beyond the edge of the Dock.
  • These scripts also work pretty well for the Quick Look window.
[robg adds: I've mirrored the scripts here, too -- but the above URL is a dropbox.com page, so it should be around for a while.]
    •    
  • Currently 2.40 / 5
  You rated: 3 / 5 (15 votes cast)
 
[10,839 views]  

10.6: Move and resize app windows via AppleScript | 0 comments | Create New Account
Click here to return to the '10.6: Move and resize app windows via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.