Automation of SDL Passolo
You can automate SDL Passolo from any programming language that is able to connect to automation servers. Using automation, Passolo can be integrated into workflow management systems. Nearly every operation which is normally performed by a user can be automated without human interaction.
To open a project from a Microsoft Visual Basic application and perform some operations you only have to:
- Create a new Visual Basic project
- From the menu Project choose References and check SDL Passolo 2016 Object Library
- Add a button to the form
- Double-click on the button and enter the following code for the callback handler subroutine:
Private Sub Command1_Click()
Dim PSL As PassoloApp
Set PSL = CreateObject("Passolo.Application")
' Open the project
PSL.Projects.Open ("c:\samples\notepad.lpu")
' Update stringlists
PSL.ActiveProject.SourceLists(1).Update
PSL.ActiveProject.TransLists(1).Update
' Autotranslate
PSL.ActiveProject.TransLists(1).AutoTranslate
' Generate targetfile and quit
PSL.ActiveProject.TransLists(1).GenerateTarget
PSL.Quit pslSaveChanges
End Sub
SDL Passolo Versions
Different versions of Passolo use different application object names. "Passolo.Application" uses the Passolo version that has been installed last. If you're using different Passolo versions side by side, your must use a versioned object name to address the correct version.
| Version | Versioned Object Name | uuid |
|---|---|---|
| SDL Passolo 2016 | Passolo.Application.16 | {A2023D96-FCF6-437B-8CDC-84946B256DDD} |
| SDL Passolo 2015 | Passolo.Application.15 | {6F0A6A19-F203-463E-8702-CE795A5BE307} |
| SDL Passolo 2011 | Passolo.Application.11 | {56004006-4162-47d6-B694-2EDFFBAAEB9F} |
| SDL Passolo 2009 | Passolo.Application.8 | {AEF5F6AE-7307-4cbb-B613-71C65D60250E} |
| PASSOLO 2007 | Passolo.Application.7 | {8B2C6424-4792-412d-8918-1E72E7BA3D3D} |
| PASSOLO 6 | Passolo.Application.6 | {DE3E6479-853B-4d31-83C7-E9A5B7DB4724} |
| PASSOLO 5 Unicode | Passolo.UnicodeApplication.5 | {A065C728-58DE-409b-A6A6-946CF78421A2} |
| PASSOLO 5 ASCII | Passolo.Application.5 | {3F3AA3C3-54E6-4ead-AEA1-DB3F2C88857D} |
| PASSOLO 4 Unicode | Passolo.UnicodeApplication.4 | {AD38F5F7-706C-42c8-83B2-1086FD8575C5} |
| PASSOLO 4 ASCII | Passolo.Application.4 | {FB9D4356-FEA2-4cba-AC24-957CF897AC65} |