Trados Studio Command line processor
If you need to run Trados Studio from a command line and you what to execute a custom processing based on a command with arguments the Integration API enables you to create your own command line processor.
Creating a Trados Studio command line argument processor
To create a Trados Studio command line processor as a third-party developer :
implement the IExternalCommandLineProcessor or IExternalWindowAwareCommandLineProcessor depending if you want to run the command line processor before or after the main screen is displayed.
from
Sdl.Desktop.IntegrationApi.Extensions.CommandLine
namespace and decorate your class with ExternalCommandLineProcessorAttribute attribute.
If you don't implement IExternalCommandLineProcessor or IExternalWindowAwareCommandLineProcessor, an exception will be thrown, but if you omit the ExternalCommandLineProcessorAttribute, your plugin will simply be ignored when Trados Studio starts.
After successfully creating your command line processor you can check the Help generated for it by and running the following command in cmd.exe : C:\Program Files (x86)\Trados\Trados Studio\Studio18\SdlTradosStudio.exe ? . Your command will appear, among other commands available, in the following screen :
[Creating a Trados Studio Command line processor Sample] (trados_studio_command_processor.md)