interdev Posted March 21, 2013 Share Posted March 21, 2013 (edited) My first workflow. For Retina MacBook Pro users only a quick way to switch between Best for Retina and the maximum More Space resolution https://github.com/interdev/AlfredWorkflows/blob/dfa39bf2c2a2237d284df3d127340007656f73f5/ToggleRetinaResolution/ToggleRetinaResolution.alfredworkflow?raw=true Hope you find it useful. Edited March 21, 2013 by interdev mgarces 1 Link to comment
hubutz Posted March 21, 2013 Share Posted March 21, 2013 Hi, not working for me - if i use "tres" it's just opening the system preferences for graphics?. Is this how it should work? Cheers, hubutz Link to comment
interdev Posted March 24, 2013 Author Share Posted March 24, 2013 with the tres keyword it should invoke an applescript to 1 - open system preferences 2 - select the Displays preference 3 - select the Color LCD Tab 4 - Click the Scaled option Once there it will look at the options presented and detect the state of radio button 3 "Best for Retina" if it is selected then it will choose the 5th radio button ("More Space") if it is not selected then it will select it Then it closes system preferences. This is all on a 15" Retina Macbook Pro running 10.8.3. The panels for the display preferences has changed around a bit in the various versions so it's worth checking you OS version Link to comment
froamer Posted March 26, 2013 Share Posted March 26, 2013 Works perfect for me - many thanks! Link to comment
hubutz Posted March 26, 2013 Share Posted March 26, 2013 might be an issue with the language? i have 10.8.3 too (and a german installation of MacOS). gonna try this at the weekend. Link to comment
mgarces Posted April 10, 2013 Share Posted April 10, 2013 It's probably worth mentioning that you must "Enable access for assistive devices" in "System Preferences" -> "Accessibility" ! After this, this workflow worked perfectly! interdev 1 Link to comment
wroden Posted July 26, 2013 Share Posted July 26, 2013 This is exactly what I came looking for. Thanks. Link to comment
hzlzh Posted July 29, 2013 Share Posted July 29, 2013 Nice~ you can share it on the workflow List below~ Link to comment
codeclarified Posted September 28, 2013 Share Posted September 28, 2013 Great little script! I know this topic is a bit old, but another possibility for those having trouble. Check your display settings and see how many options you have under scaled, and update the script to fit your display's options. My MacBook Pro 13" had only four options, with best as option 2, and most space as option 4 - so trying to run it without editing, the script set my display between the two, and would not change because 5 was not a valid option. To those unsure about editing workflows: double click the Run NSAppleScript bubble, and change both 3's to whichever option is for best in your panel, and change the number 5 to the option for space. Link to comment
sriggins Posted October 28, 2013 Share Posted October 28, 2013 This is a great script! Looks like Apple changed some things for Mavericks, so I forked, fixed it, and did a pull request. Not sure what Interdev will do with it, but in the meantime, you can find it here: GitHub Link skellis 1 Link to comment
kjelllybeck Posted March 15, 2017 Share Posted March 15, 2017 (edited) hi @sriggins Have the new macbook pro 15 with Sierra, could you make your beautiful script work for it? Edited April 20, 2017 by kjelllybeck Link to comment
tonnynator Posted July 26, 2017 Share Posted July 26, 2017 Hey guys! I decided that I was missing that workflow too much so I tried and fixed it! It's reaaaallly simple. Instead of just upload a new version, I'll just tell you how to fix the current workflow. It's for a 13" Macbook Pro BTW. You actually just have to change the group 1 to group 2. click radio button "Scaled" of radio group 1 of tab group 1 click radio button 3 of radio group 1 of group 2 of tab group 1 return "Resolution 1680x1050 chosen" Here is a screen capture of how I did it. The only problem now is that I can't get the sys preferences to quit after.. But I can definitely deal with this. BTW, I used an app called UI Browser to identify what are the buttons to call in windows. Really nice. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now