screen sharing and keystroke

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 :confused:


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

jesus crist

not much help in here…

not like it used to be :frowning:

just saw your post, works fine for me.

are you sure your server is called uniqz in all places where it matters? Like in Sharing Control Panel?