Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

airkarol

macrumors 6502
Original poster
Nov 12, 2005
280
0
How would I make a script to automatically change the resolution of the display when another is plugged in?

Thanks in advance.
 

fivetoadsloth

macrumors 65816
Aug 15, 2006
1,035
0
How would I make a script to automatically change the resolution of the display when another is plugged in?

Thanks in advance.

Hmm. This would be fairly easy in apple script, though i dont know quite enough to give you a working script, sorry. Ill see what i can do.
Code:
tell application "Finder"
	activate
	select window of desktop
	select Finder window 1
	set target of Finder window 1 to folder "Applications" of startup disk
	select Finder window 1
	select Finder window 1
	open application file "System Preferences.app" of folder "Applications" of startup disk
end tell
That will open system prefernces though it is not when the display is plugged in and it doesnt change anything. Sorry :( Though i might be doing it completly inccorect, maybe someone with more experiance can help. (use script editor)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.