Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alfred + Screen Sharing + AppleScript + Mountain Lion = Winning
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
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
@colinharman

This comment has been minimized.

Owner

colinharman commented Aug 22, 2012

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.

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