CTRL Script
FilesScriptsEditorReport GeneratorGetting Started

Getting Started

How to import files?

You can import any type of text files, or a compressed archives containing text files into the app. Binary files are not supported. The app will parse the file and display the content in the editor. You can then apply a script to modify the file content, or extract data from the files.

Where to find files?

Once you have imported a file, you can write a script to modify the file, or upload existing scripts. The script is written in JavaScript. A new Function() will be created from the entered script text. In the editor, script function will be called with selected file as the first argument, while in the report generator, the script function will be called with array of selected files as the first argument.

Usage examples

Value returned from the editor or report generator must always be a string.

Counting words

Count words within the .txt file

Trimming strings

Remove excess spaces from the .csv cells.

Remove excess spaces from the source translation inside the .xml file.

Count source elements

Count all the filled source elements within multiple .xml translation files. Use it inside the report generator.

GitHub