Newbie: Project Automation API, command

Hi Chaps,

I'm in the first stages of testing the Project Automation API. Using the Batch Analyzer.exe, I am currently able generate a Trados project  and analysis from running a command line prompt, e.g.:

cd C:\Program Files (x86)\SDL\SDL Trados Studio\Studio3 && Sdl.SDK.ProjectAutomation.Samples.BatchAnalyze.exe C:\TEST C:\TM.sdltm /c /i /k

This works fine when running from within CMD.exe or opening a batch file (with the same contents).

What I'm hoping for, is to run this command from a Web Browser. But when I run a PHP script, that calls said batch file, I get this error:

Could not find the default project template. Run SDL Trados Studio to initialize the default project template.

This looks to me that the command line has been successfully executed, but some SDL component has stopped it in it's tracks.

Does anyone know whether this is possible, and/or is there a solution to the above?

Thanks in advance,

Samuel

Parents Reply
  • Not sure either but I am pretty sure that some files and folders are generated the first time you run Studio (among others under Documents). The error message is quite clear: it can't find the default template, which I believe is created the first time you run Studio... Maybe someone else can confirm my suggestion/presumption?

    What about using another template? Or copy the default template and copy it to a location where your account can access? You would just need to add a reference to your new template when you create your filebasedproject?
Children