Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 10, 2013, 02:02 PM   #1
figo77ll
macrumors newbie
 
Join Date: Jan 2013
How to get the list of apps and control their window size in OS X

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!
figo77ll is offline   0 Reply With Quote
Old Jan 11, 2013, 12:44 AM   #2
numero
macrumors member
 
Join Date: Jul 2002
Location: OR
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.
numero is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Keep a new Finder window the same size? Imola Ghost OS X 10.8 Mountain Lion 0 May 20, 2013 11:24 PM
Finder window size JoeSay Mac Basics and Help 2 May 2, 2013 09:45 PM
Folder size at bottom of each window? jgw1283 OS X 10.8 Mountain Lion 2 Aug 30, 2012 04:14 AM
how to reduce apps' reaction time in mission control window? mannerboy Mac OS X 10.7 Lion 0 Aug 11, 2012 07:08 AM
Window auto re-size app? Ogino Mac Basics and Help 6 Aug 9, 2012 09:39 PM

Forum Jump

All times are GMT -5. The time now is 05:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC