Created
August 6, 2012 02:33
-
-
Save colinharman/3269270 to your computer and use it in GitHub Desktop.
Alfred + Screen Sharing + AppleScript + Mountain Lion = Winning
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
tell application "Screen Sharing" | |
activate | |
tell application "Screen Sharing" | |
activate | |
tell application "System Events" | |
keystroke "osx-mini.local" -- "osx.mini.local" would need to be replaced by "YourComputerName or IP Address" | |
keystroke return | |
end tell | |
end tell | |
delay 2 | |
tell application "System Events" | |
set value of attribute "AXFullScreen" of window 1 of process "Screen Sharing" to true | |
end tell | |
end tell |
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
tell application "Screen Sharing" | |
GetURL "vnc://osx-mini.local" -- "osx.mini.local" would need to be replaced by "YourComputerName or IP Address" | |
end tell | |
delay 1 | |
tell application "System Events" | |
set value of attribute "AXFullScreen" of window 1 of process "Screen Sharing" to true | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used the VNC command to remove the need to vis the prompt for no reason, works much more quickly and still sets to full screen after no delay.