Im trying to do a simple script to start screen sharing to my local server, but every time the keystroke is running it puts in a " , " in the hostname, i dont get that, the host is set to uniqz.local but system events or something else mess’s that up
tell application "Screen Sharing"
activate
choose from list {"uniqz"} with prompt "Select Computer To Screen Share" default items {"uniqz"} OK button name "Connect" cancel button name "Cancel"
if result is {"uniqz"} then
tell application "System Events"
keystroke "uniqz.local"
keystroke return
end tell
end if
end tell