How to get the list of apps and control their window size in OS X

Discussion in 'Mac Programming' started by figo77ll, Jan 10, 2013.

  1. macrumors newbie

    Joined:
    Jan 10, 2013
    #1
    I want to know the programmatical way to do this.

    The list of apps refers to all the apps that are actively running with a UI.

    In terms of window size control, I specifically want to know how to maximize it (not to full screen but to full extent - menu bar still will be shown).

    I still have this question after reading Apple's Online document library..

    Thanks!
     
  2. macrumors regular

    Joined:
    Jul 23, 2002
    Location:
    OR
    #2
    Code:
    tell application "System Events"
    	set theApps to get every process whose background only is false
    end tell
    
    repeat with anApp in theApps
    	tell anApp
    		get properties
    	end tell
    end repeat
    Some AppleScript code. Insert some clever code in place of the "get properties" command I have. You might want to see if there is a "bounds" property of the window and set that value to something close to your screen resolution.
     

Share This Page