This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Default resolution (1280 x 800) | |
-- MacBook Pro 13" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 2 of radio group 1 of group 2 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Default resolution (1440 x 900) | |
-- MacBook Pro 15" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 3 of radio group 1 of group 1 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Rotate Resolution… (between 1440 x 900, 1680 x 1050, and 1920 x 1200) | |
-- MacBook Pro 15" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
tell radio group 1 of group 1 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Most Space resolution (1920 x 1200) | |
-- MacBook Pro 15" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 5 of radio group 1 of group 1 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- More Space resolution (1680 x 1080) | |
-- MacBook Pro 15" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 4 of radio group 1 of group 1 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Mojave --nointeraction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
dpkg --get-selections | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Rotate Resolution (between 1280 x 800, 1440 x 900, and 1680 x 1050) | |
-- MacBook Pro 13" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
tell radio group 1 of group 2 of tab group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Most Space Resolution (1680 x 1050) | |
-- MacBook Pro 13" Retina, Yosemite version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 4 of radio group 1 of group 2 of tab group 1 |