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. figo77ll macrumors newbie

    Jan 10, 2013
    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..

  2. numero macrumors regular

    Jul 23, 2002
    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