# Command line support on MacOS

**URL:** https://community.royalapps.com/t/command-line-support-on-macos/886
**Category:** Royal TSX (for macOS)
**Created:** [March 8, 2019, 5:06pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886 "2019-03-08T17:06:34Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [March 8, 2019, 5:06pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/1 "2019-03-08T17:06:34Z")

</div>

Hello,

I’ve been reading the support documentation of Royal TS, and the Command Line documentation looks to be very Windows oriented.

I wanted to use the same Command Line options on MacOS, but it doesn’t seem to work.

If it’s not supported, will it be in the future?

I’m asking because I can’t seem to be able to use the “URI” properly when it comes to RDP session.

When I use “open” in my Terminal with a quoted “rtsx://…” URI, each time I add a query string, the connection fails without error (it looks like it tries to connect but closes immediately). Without the appended query string (that I use to name my adhoc connection window), it works flawlessly.

Kind regards,

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [March 10, 2019, 6:02pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/2 "2019-03-10T18:02:06Z")

</div>

Hi,

we have no plans to add a CLI to Royal TSX at the moment.

We do however support the “rtsx” URI scheme as you mentioned.

Could you please give us an example of an URI you’re using that fails?

Documentation for this feature is available [here](https://www.royalapplications.com/go/kb-ts-mac-integration) and [here](https://www.royalapplications.com/go/kb-ts-mac-protocolhandlers).

cheers,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [March 10, 2019, 7:18pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/3 "2019-03-10T19:18:36Z")

</div>

Hello Felix,

Thank you for your answer.

I’m running Royal TSX within a bash script with the “open” command.

```auto
open -n -F -W "rtsx://rdp%3a%2f%2f$USERNAME%3a$ENCPASSWORD@localhost%3a${LOCALPORT}?property_Name=${SERVER}"

```

The above command actually doesn’t work. It starts Royal TSX and I can see the RDP url in Royal TSX, but it doesn’t work because the query string is added to the RDP URL (I don’t think that’s supposed to happen, is it?)

If I manually remove the query string in Royal TSX (or if I remove it in my script), it works properly and it connects to my Windows machine.

I followed this manual when I created my bash script:

[https://content.royalapplications.com/Help/RoyalTS/V5/index.html?advanced\_urischeme.htm](https://content.royalapplications.com/Help/RoyalTS/V5/index.html?advanced_urischeme.htm)

Is this not applicable to MacOS?

Should I use AppleScript?

Kind regards,

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [March 11, 2019, 12:06pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/4 "2019-03-11T12:06:52Z")

</div>

Hi,

the “property\_Name=” syntax is not available on macOS at the moment.

I’m moving your thread to the “Ideas” forum.

cheers,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [March 11, 2019, 6:52pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/5 "2019-03-11T18:52:53Z")

</div>

Hello felix,

Thank you for your reply.

Does it mean that the query string parameters are not supported at all on macOS for now?

Because even without “property\_Name”, and just specifying action, or using, it fails.

Anyway, thank you for moving my threads to ideas, I think it’d be great to at least support the full URI scheme that is available for Windows on macOS. 🙂

Kind regards,

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [March 11, 2019, 8:30pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/6 "2019-03-11T20:30:09Z")

</div>

Hi,

yes, the parameters supplied via querystring are not supported in Royal TSX (for macOS) at the moment.

cheers,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [April 8, 2019, 8:17pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/7 "2019-04-08T20:17:36Z")

</div>

Hello Felix,

About this, are there any plans on supporting it in the future?

Is it something that can be implemented easily or would it take a long time?

I just want to know if I wait for this to appear or if I need to look for another software to support this.

I actually quite like Royal TS, so I’m trying to stick to it. 🙂

Thanks!

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [April 9, 2019, 10:37am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/8 "2019-04-09T10:37:04Z")

</div>

Hi,

we have no short term plans for implementing this.

What properties would you like to set using this method?

thx,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [April 9, 2019, 8:53pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/9 "2019-04-09T20:53:12Z")

</div>

Hello Felix,

Well, in the context of an RDP connection, I’d like to be able to name connection, share a local folder and fix the resolution.

Kind regards,

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [April 11, 2019, 6:15am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/10 "2019-04-11T06:15:54Z")

</div>

Hi there,

thx for letting me know your use cases.

Unfortunately it’s not currently possible to override those values using ad hoc connections. Since ad hoc connections are based on the default settings for the respective connection type, you could modify your default settings to reflect the configuration you need. Obviously this would apply to all ad hoc connections and any newly created connections.

cheers,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [April 11, 2019, 12:03pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/11 "2019-04-11T12:03:10Z")

</div>

Hello Felix,

Unless I’m mistaken, I haven’t found a way to add “defaults” for ad-hoc RDP connections.

Is that possible? Can I add a default shared folder for every RDP connection I create ad-hoc?

Kind regards,

RS

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [April 11, 2019, 12:12pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/12 "2019-04-11T12:12:21Z")

</div>

Hi,

the default settings located under “Application - Default Settings - Connection Types (i.e. Remote Desktop)” apply to ad hoc connections as well as newly created regular connections.

So any changes you make to those default settings will also apply to ad hoc connections.

cheers,

felix

---

<div class="post-metadata">

### Author: ![rs\_5k](https://community.royalapps.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@rs\_5k](https://community.royalapps.com/u/rs_5k)
#### Post date: [June 26, 2019, 10:14am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/13 "2019-06-26T10:14:22Z")

</div>

Hello Felix,

Should I create a new feature request focused solely on the ability to name an ad-hoc connection?

Kind regards,

rs

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [June 26, 2019, 10:44am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/14 "2019-06-26T10:44:38Z")

</div>

Hi,

no need for a separate feature request because it would be covered by the query string style parameters anyway.

Cheers,  
Felix

---

<div class="post-metadata">

### Author: ![pascal\_reutener](https://community.royalapps.com/user_avatar/community.royalapps.com/pascal_reutener/32/376_2.png) [@pascal\_reutener](https://community.royalapps.com/u/pascal_reutener)
#### Post date: [May 13, 2022, 12:21pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/15 "2022-05-13T12:21:10Z")

</div>

Hi Felix

Any news on this?

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [May 13, 2022, 12:22pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/16 "2022-05-13T12:22:43Z")

</div>

Hi Pascal,

unfortunately no.

Could you please describe your use case so that we know exactly what’s missing from your point of view?

thx,

felix

---

<div class="post-metadata">

### Author: ![pascal\_reutener](https://community.royalapps.com/user_avatar/community.royalapps.com/pascal_reutener/32/376_2.png) [@pascal\_reutener](https://community.royalapps.com/u/pascal_reutener)
#### Post date: [May 13, 2022, 12:35pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/17 "2022-05-13T12:35:46Z")

</div>

Hi Felix

Thanks for the quick reply.

You may have seen this post: [Cisco anyconnect command task](https://community.royalapps.com/t/cisco-anyconnect-command-task/1604)

While this works like a charm, we are requested to authenticate our S2S VPN connection by going to a URL and entering specific credentials there, to actually make the connection work.

So my idea would have been to

- create a new web page connection in Royal TSX where my S2S connection credentials get filled in
- Extend the VPN connect script to open the web page connection where the S2S connection gets confirmed

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [May 13, 2022, 12:43pm UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/18 "2022-05-13T12:43:39Z")

</div>

Hi Pascal,

so you would like to open a specific, existing connection in Royal TSX from a script, is that correct?

If so, you can already use [AppleScript](https://www.royalapps.com/go/kb-ts-mac-applescript-samples) for that which can also be invoked from shell scripts using the [`osascript`](https://ss64.com/osx/osascript.html) command. See [this post](https://osxdaily.com/2016/08/19/run-applescript-command-line-macos-osascript/) on how to invoke it.

Does that help?

cheers,

felix

---

<div class="post-metadata">

### Author: ![pascal\_reutener](https://community.royalapps.com/user_avatar/community.royalapps.com/pascal_reutener/32/376_2.png) [@pascal\_reutener](https://community.royalapps.com/u/pascal_reutener)
#### Post date: [May 16, 2022, 5:40am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/19 "2022-05-16T05:40:21Z")

</div>

Hi Felix

Yes, that will absolutely work… Thank you!

Best regards, Pascal

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [May 16, 2022, 6:36am UTC](https://community.royalapps.com/t/command-line-support-on-macos/886/20 "2022-05-16T06:36:33Z")

</div>

@Pascal: Perfect, glad I could help!

cheers,

Felix

[Next page](https://community.royalapps.com/t/command-line-support-on-macos/886.md?page=2)
