»
S
I
D
E
B
A
R
«
Display Rotation Script
July 23rd, 2005 by Conrad

One of my favorite features of Tiger is the ability to rotate the display. My fabulous friends and family got me a Dell 2005FPW for my 30th birthday, and being able to rotate it to read code and research papers is a tremendous treat.

However, I find it a nuisance to click the display preference Rotate pop-up button, then turn the display, and click the confirm button before my 15 seconds are up.

To simplify that interaction, I’ve written two scripts to do the clicking for me. One rotates clockwise, the other counter-clockwise. If you think that would be useful to you as well, please, help yourself. Add them to your Finder applescript menu, or add them to a hot key launcher (in my case, I added two Triggers to Quicksilver)

Update 2007.01.10: I’ve tested the scripts in Leopard (10.5.x) and everything still works.

Update 2006.03.04: I’ve modified the scripts to handle rotation of displays with the same name. (thanks for the pointer David!) Please download them again and overwrite the old scripts.


17 Responses  
bennyp writes:
July 30th, 2005 at 12:50 am

I’m an ibook owner. I’d love to rotate the display on this puppy so I can read pages portrait style. If you hear of any leads, please let me know. thanks!

ToastyKen writes:
August 1st, 2005 at 1:27 am

Man, you suck! Reading your post is making me make an impulse buy of this monitor! You’re causing me to spend $500, you basard! :)

But seriously, I had no clue 20″ LCDs were so cheap now.

Lalo Landas writes:
August 13th, 2005 at 2:13 pm

dude… is there anyway you can flip it horizontal! i have an issue with a video beam… i might need that.

thanx!

David writes:
September 6th, 2005 at 6:28 pm

Thanks for the script. I used it on my dual-monitor setup, and it rotated the first display twice. Each window is named the same as the name of the monitor, and since they are the same make/model number, it picked the same one twice.

I fixed that by using a numerical reference (1 or 2). The only trick is that the “confirm” command always goes to window #1, because as soon as you change the rotation, that display’s window becomes first.

Works like a charm now.

Jonathan Woolson writes:
November 5th, 2005 at 10:53 pm

Thank you! Just what I was looking for.

Justin Leader writes:
March 3rd, 2006 at 1:54 pm

For David, who got the script to work with Dual displays (or anyone):

How exactly to you modify the script to work with dual displays? I want to be able to pivot the main display. Tips? Thanks.

Nathan Pyatte writes:
March 5th, 2006 at 1:15 am

To whom it may apply, THANK YOU! I have been searching for this script for 6 days. I have a powerbook G4 17in and recently purchased a Gateway 21″ FPD2185W HD Monitor.

I have downloaded this script and have it triggered by one of my mouse buttons. It seems to work fine with opening the system preferences, locating the Gatway monitor and rotating it. It seems to get stuck at the “REVERT/CONFIRM” window. Then i get this error. Below is the error I’m receiving.

System Events got an error: NSReceiverEvaluationScriptError: 4

Is thier a way to get the script to also confirm this action and all will be good?

Agian I praise you for this script as I feel i can get some sleep now :)

Nathan

drtofu writes:
May 20th, 2006 at 7:40 pm

Thanks! Just what I was looking for!

drtofu writes:
May 28th, 2006 at 5:47 pm

Hi there! I’ve modified your script so that it only toggles between landscape and portrait modes.

I have a Dell 1905FPV which rotates 90° in one direction only, so I hard-coded landscape and portrait rotations into a single applescript, which I can trigger with a keypress to toggle between modes automagically. I also reduced the delay for the ‘confirm’ button press after a rotation to non-standard mode.

I’ve put a page up with my modified applescript (http://fancyham.com/tips/OS_X_toggle_display_rotation_applescript.html). Please feel free to incorporate any of my changes into your script.

Thanks again!

Mike writes:
June 3rd, 2006 at 6:13 pm

I just recently got a Dell 2007FPW and this script saved me the trouble of writing my own. Thanks!

Mark writes:
September 16th, 2006 at 7:11 pm

I have a samsung and spent all afternoon messing around with a script then it hit me there must be one out there. In less than 20 seconds I was spinning that monitor like a top.

Louis-Philippe writes:
February 6th, 2008 at 12:15 am

Is there anyway that you can send me the quicksilver Triggers they are no longer onto their website, the link you provided is no longer active.

soCram writes:
June 15th, 2008 at 10:49 am

It doesn’t work with leopard 10.5.3 anymore :(

soCram writes:
June 15th, 2008 at 12:02 pm

It works in the german version also after changing a few lines:
The changed version can be downloaded here:
http://home.arcor.de/socram/misc/RotateDisplay.scpt

Conrad writes:
June 15th, 2008 at 4:45 pm

I haven’t had any problems with the script in 10.5.3 on the U.S. version of OS X, but Bryan’s changes linked above are a welcome modification to enable running the same script just to swap between portrait and landscape (0º-90º-0º). Thanks for the updates Bryan!

soCram writes:
June 15th, 2008 at 4:54 pm

As you said, because you use the US-Version.
To append: The original script can be found here: http://fancyham.com/ so you can send him your regards personally.
The script isn’t my work, I only changed some lines. Just to clarify.

Chaos writes:
November 22nd, 2008 at 8:44 pm

this is all well and good, but i have dual monitors and i’d like for the LEFT monitor to rotate 90 degrees, and the RIGHT monitor to rotate 270 degrees. (options 2 and 4 in Display Rotation preferences) how would i go about doing this? this script works, but it rotates both of my displays either 90 degrees or 270 degrees. I dont really care if i need 2 scripts to do it. some thing i have in my favor is that the LEFT monitor is named “DELL 2407WFP” and the RIGHT monitor is named “Sceptre X24WG” even though they’re both Sceptre X24WG monitors. anybody care to show me how i would script this?

Leave a Reply

»  Substance: WordPress   »  Style: Ahren Ahimsa