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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

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

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