Microsoft Remote Desktop

An Alfred Workflow


Short Description

Worklfow for using Microsoft Remote Desktop. It will search your bookmarks and directly open the selected bookmark via the rdp:// protocol

Last Updated

16 Dec 2020

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes No No No No
 

Version

0.1.0
 

Bundle ID

com.fmuller.rdp
 

Author

Categories

Tags

alfred-rdp-workflow

Simple workflow to open Bookmarks from Microsoft Remote Desktop, based on https://github.com/ctwise/alfred-workflows/tree/master/remote-desktop This can only be used if you have Alfred (https://www.alfredapp.com/) installed and have the Powerpack as well.

Why?

The version that was in the source repository was no longer maintained and was no longer functional. It also relied on using osascript to open 'Microsoft Remote Desktop', bring it to the foreground and simulate keypresses to open the session. This was not always working flawlessly.

How?

Two parts:

list_desktops.rb: Accepts one command line argument, the hostname, and uses the build in script option of the Microsoft Remote Desktop App to display the bookmarks in csv format. Then it searches for the hostname and returns that back to alfred via ./alfred_feedback.rb. This allows the user to search through the different bookmarks.

open_desktop.rb: Accepts one command line argument, the ID of the bookmark, and uses the build in --script bookmark export option of the Microsoft Remote Desktop App to get the rdp:// url. It then calls the rdp url and the session opens.

Todo:

Add testing/linting

Installation

You can compile it from source or download the latest binary from the releases page.

https://github.com/frank-m/alfred-rdp-workflow/releases

Screenshots