Screen Sharing with your Voice
This is another post in this series about how to use custom commands in DragonDictate for Mac. This post will detail how to use AppleScript to Screenshare with a remote machine which would normally be on your home network, but could also be somewhere else on the internet. If it’s located somewhere else, make sure you know its domain name.
From the Tools menu and DragonDictate choose the Commands option. To create a new command from this window, you can either choose the New Command option from the File menu or use the keyboard shortcut Shift Command N.
As you can see you have a number of new options on the right-hand pane of the command window, this is where you can control the context, type and action each of your commands will take.
In this case we are going to be using an Applescript command, so you need to change the following options to reflect that. I’ve used my usual trigger word (Xylophone) and then, because I have a few of these commands to screen share with different computers, I’ve added the name of the remote computer (Server) as well:
- Command Name = Xylophone Server
- Command Description = This command will use the Screen Sharing function of macOS to see the screen of remote computer.
- Context = Global (this means it will run when any application is foremost and not just one particular application is open)
- Type = AppleScript
- The last option is a large window where we put the AppleScript we wish to be run when our command is issued. In this case the AppleScript is:
-- Bring Screen Sharing.app to the front and start VNC session tell application "Screen Sharing" activate GetURL "vnc://firstname.lastname@example.org" end tell
With all of that filled in correctly, click on the Compile button to make sure there are no errors in your AppleScript (it will tell you if there are) and finally click Save. You can then close the command window and now share the screen of the remote computer of your choice.
The first time you run this command you will be asked for the password of the remote machine; you can choose to save this password in the keychain and you will never be asked for it again.
So in summary my verbal command is “Xylophone Server”
And the AppleScript you will need is here: