|
|
An Applescript to match window heights and positions
Here is how to make this script work with the frontmost application:
tell application "System Events" set theApp to get name of first process whose frontmost is true end tell tell application theApp ... [rest of original script...]
Note that for this to work the script would have to be run from a script menu, and not as a script application (since then the script application would be frontmost) ---
An Applescript to match window heights and positions
Or, more simply:
An Applescript to match window heights and positions
Oops... scratch that.
An Applescript to match window heights and positions
Perhaps simpler, but not functional. ;) "application whose frontmost is true". Gives an error. You have to query "System Events" for the *process* whose frontmost is true, and use its name. Ah, the quirks of AppleScript.... :)
An Applescript to match window heights and positions
sjonke, thank you!
Not working from script menu
I used the script editor to save the generalized version of this, which I called matchall.scpt, and another version that maximizes all windows for my 12-inch powerbook (maxall.scpt; see below). If I click Run in the script editor, it works (only for the script editor windows, of course). But when I select it from the script menu, it doesn't function.
Help, please!
Not working from script menu
I couldn't get the general version of this script to work from the Script Menu either. The variable
Fixed!
Thanks, ags. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|