Re: Changing screen resolution
Re: Changing screen resolution
- Subject: Re: Changing screen resolution
- From: Jason Kacmarski <email@hidden>
- Date: Thu, 8 Jul 2004 04:34:18 -0400
Here's a GUI Script I whipped up about 6 months ago that should do it.
All this does is the resolution change. You'll need to add any
additional code on your own. GUI scripting is the only way (minus the
use of scripting additions) to script a resolution change in OS X.
Make sure "Enable Access for assistive devices" is turned on the in the
Universal Access preference pane for GUI Scripting to work.
tell application "System Preferences"
activate
set the current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
tell tab group 1 of window 1
click radio button "Display"
tell group 1
tell table 1 of scroll area 1
repeat with i from 1 to count of rows
if value of text field 1 of row i is "1024 x 768" then
set selected of row i to true
end if
end repeat
end tell
end tell
end tell
end tell
end tell
Hope this helps.
Jason
On Jul 7, 2004, at 7:30 PM, Roger Howard wrote:
On Jul 7, 2004, at 3:46 PM, Paul Thompson wrote:
Hi,
The machine I'm currently working on is a 17" flat panel iMac,
running at 1.25 GHz. It is definitely possible that I have the
screen resolution wrong. Sorry 'bout that. 1024 x 768 definitely
sounds better.
I don't do UI scripting so I was just stabbing in the dark, but that
may well be the problem. At least try it with a value that is correct
for your monitor, and if it still doesn't work then we can look at it
closer.
-R
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.