Screen Rotation Toggle
An OS X "Service" (to which you can assign a shortcut key) to switch between Standard and 90-degree screen rotation (for the first monitor).
I knocked this up (based on other scripts I found arund GitHub, which are credited in the source) for my Dad, as his monitor can be rotated. Mine can't, so I don't intend to be actively developing this -- so patches are very welcome :-).
This has been tested on a Mac Mini running Mavericks.
- Download the Zip file of the latest release: https://github.com/matatk/ScreenRotationToggle/releases/latest
- Unzip the Zip file and move the application and the service to your ~/Library/Services/ folder.
- Visit System Preferences > Keyboard > Shortcuts > Services and assign a shortcut key combination to the "Safari Zoom Mode Toggle" service (under "General" at the bottom of the list).
Press the shortcut key combination. If the display is on Standard rotation, it will be toggled to 90-degree rotation; if the display is on 90-degree rotation, it will be toggled to Standard rotation.
Note: the first time you use this (or a new version), it needs to be granted access to GUI scripting (so that it can access and activate System Preference's menus and menu items); instructions on how to do this are given in a pop-up message. You may need to run it using Finder from ~/Library/Services/ rather than via the keyboard shortcut in order for the pop-up to appear.
Normal AppleScripts are kept in binary files; this seemed incongruous with the nature of open development, so the script is being developed in plain text, in exchange for a small 'compilation' process being required...
- Ensure you have Apple's Command Line Developer tools installed (for make).
- Clone the code.
make; this will compile/build the helper app and put it and the Service in
~/Library/Services/for you. It will also build a Zip file containing the app, service and README for distribution.
- Follow step 3 as above.