0 votes
29 views
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) | 29 views

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

+4 votes
2 answers 467 views
Welcome to the area for Paratext Scripts and hacks. I've seen a number of these floating around and recently learned of someone ... but at least we can find them all in one place!
[Moderator]
dhigby
1.3k
asked Oct 22, 2021
0 votes
2 answers 57 views
I am trying to set up an autocorrect.txt file in a Paratext 9.5 project. I have followed the instructions in the Paratext ... 't seem to be working at all. What could be wrong?
anon399461 123 asked May 8
0 votes
2 answers 19 views
I am running Paratext 9.5 on my Macbook Pro (M1 Processor) using Parallels Desktop Version 26.3.3. Paratext ... anyone else had this problem? Any advice would be appreciated.
anon055151 176 asked May 30
0 votes
0 answers 125 views
This section is for scripts to accomplish certain functions in Paratext, using Paratext's built-in Python scripting ability. ... these Python files in the sticky post at the top.
[Moderator]
dhigby
1.3k
asked Oct 22, 2021
0 votes
0 answers 302 views
Have you done anything with custom checks and scripts in Python? If so could you send me ([Email Removed]) a ... out the best way to support Python in P8. Blessings, anon451647
anonymous asked Jun 1, 2016
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,038 questions
5,994 answers
5,661 comments
2,022 users