Answers:
open vnc://server.address[:port]
open vnc://user@server:port也是有用的,并且不存在在进程列表中显示密码所带来的安全风险
                    man open在今天之前打字。它可以做很多事情。
                    vnc://user:password@server:port
                    如果您有权访问在系统偏好设置中激活的辅助设备,则可以尝试在AppleScript编辑器中保存以下AppleScript并通过命令行执行它:
tell application "Screen Sharing"
    activate # start Screen Sharing if not running yet
    tell application "System Events"
        keystroke "a" using command down # this will cause the address to clear
        keystroke "127.0.0.1" # replace with your host
        key code 36 # press enter
    end tell
end tell
另存为Sharing.scpt,并执行为osascript /path/to/Sharing.scpt。