|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On May 7, 2008, at 11:01 AM, Jim Krenz wrote:
I once had that problem with lots of applications. Scroll bar hidden behind DragThing at the bottom of the screen, &c. So I wrote a script to resize any application's front window to the bounds I wanted. I've been using it for years. Your question prompted me to look at it again and I just revised the code. Save this as an application ... try tell application "System Events" to set applname to (name of (some process whose frontmost is true)) as text -- display dialog applname -- diagnostic only if applname = "Finder" then return tell application applname to set bounds of window 1 to {0, 22, 1200, 1000} -- for 1680 x 1050 monitor on error tell application "Finder" to beep end try It works with: Mail; Safari; NetNewsWire; TextEdit; Address Book; iCab; ... But not Firefox; Activity Monitor; ... The name of Firefox = "firefox-bin". (???) Some applications use 'document' instead of 'window'. You might want to put some more options in the try block to improve performance. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| References: | |
| >How to maximize Safari windows? (From: Jim Krenz <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.