0 votes
I am trying to create custom scripts for use in Paratext. The problem is that they seem to be silently failing with no output. I have tried several different ones and there is no error message (sometimes a quick dialogue saying "running" and no output.) Here is the python code in my cm folder:

# -*- coding: utf-8 -*-

print "TEST SUCCESSFUL"

print "This script is working"

print "Project: " + Project

And my code in the cms folder:

\check Simple Test

\subMenu TestScripts

\script SimpleTest.py

\description Simplest possible test

\toText

\utf8
Paratext by (107 points)

1 Answer

0 votes
The \toText option means that the script should be creating an output file.

If you change this to \toList (or delete the line since \toList is the default), the output will be shown in the list window.

The SampleScript.py file gives a larger example of a script.
by [Administrator]
(3.4k points)
Thank you! I got it working.

Related questions

0 votes
0 answers
Paratext Oct 22, 2021 asked by [Moderator]
dhigby
(1.3k points)
0 votes
0 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,032 questions
5,987 answers
5,653 comments
2,019 users