...
Software Server scripts are used by Polyglot to automate the interaction with software that is capable of converting from one file format to another. These scripts can directly wrap command line utilities that carry out conversions for use in Polyglot or split the steps of opening a file in one format and saving a file in a different format, typical of GUI driven applications. These wrapper scripts can be written in pretty much any text based scripting language. Below we show a few simple examples. Full details on the creation of these wrapper scripts, the required naming convensions, and required header convensions please refer to the the Scripting Manual.
AnchorAutoHotKey AutoHotKey
AutoHotKey
AutoHotKey | |
AutoHotKey |
AnchorOpenOffice OpenOffice
Command Line Application
OpenOffice | |
OpenOffice |
Code Block | ||
---|---|---|
| ||
REM OpenOffice (v3.1.0) REM document REM doc, odt, rtf, txt REM doc, odt, pdf, rtf, txt "C:\Program Files\OpenOffice.org 3\program\soffice.exe" -headless -norestore "-accept=socket`,host=localhost`,port=8100;urp;StarOffice.ServiceManager" "C:\Program Files\OpenOffice.org 3\program\python.exe" "C:\Converters\DocumentConverter.py" "%1%" "%2%" |
Anchor | ||||
---|---|---|---|---|
|
The script below opens a .pdf file for conversion.
...