Skip to content

Instantly share code, notes, and snippets.

@milligramme
Last active June 8, 2017 01:51
Show Gist options
  • Save milligramme/af1816ced5d0e96d624f5979ab5904ad to your computer and use it in GitHub Desktop.
Save milligramme/af1816ced5d0e96d624f5979ab5904ad to your computer and use it in GitHub Desktop.
use iMac as external display with target display mode
tell application "System Events"
key code 122 using command down # Cmd-F2
end tell
@milligramme
Copy link
Author

open in Script Editor.app, then save as Application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment