Start a new topic
Implemented

Command line support on MacOS

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


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 and here.


cheers,

felix

Hello Felix,


Thank you for your answer.

I'm running Royal TSX within a bash script with the "open" command.

 

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


Is this not applicable to MacOS?

Should I use AppleScript?


Kind regards,


RS

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


Hi,


the "property_Name=" syntax is not available on macOS at the moment.

I'm moving your thread to the "Ideas" forum.


cheers,

felix

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

Hi,


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


cheers,

felix

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

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

Hi Felix

Any news on this?

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

Hi Felix


Thanks for the quick reply.

You may have seen this post: https://support.royalapps.com/support/discussions/topics/17000021725?page=1


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

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 for that which can also be invoked from shell scripts using the "osascript" command. See this post on how to invoke it.


Does that help?


cheers,

felix

Hi Felix

Yes, that will absolutely work… Thank you!


Best regards, Pascal

@Pascal: Perfect, glad I could help!


cheers,

Felix

Login or Signup to post a comment