0 votes
35 views
I am working with Claude Cowork trying to build a figure-insertion workflow for Paratext using Python scripts and Excel spreadsheets that have information about the images I may want to use. The spreadsheets include scripture references. I would love to be able to click on a scripture reference in the spreadsheet and have Paratext turn to that verse. I know Paratext can communicate BCV focus with various other software tools, but is there any way to trigger it from Excel?
All wild ideas welcome.
John Nystrom
Paratext by (312 points) | 35 views

2 Answers

+1 vote

The normal BCV synchronization happens by setting values in the Windows Registry (HKCU\Software\SantaFe\Focus\ScriptureReference) and then sending a custom Windows message that was registered via a call to RegisterWindowMessage in the application with the parameter "SantaFeFocus". I don't think that's possible via an Excel script / macro.

Something that might work, but would be complicated to set up, is to create a custom URL protocol and create a small application that can forward the URL parameter to the Registry location mentioned above and then fire the Windows message mentioned above. Then you can create a link in Excel that uses that custom protocol - which, when clicked, would run that small application.

Something else that might work, but would also be complicated to set up, would be to create a PT9 plugin that can handle some kind of signal from Excel, but I'm not sure if that's possible as I'm not real familiar with Excel scripts / macros.

I think those qualify as wild ideas. wink

by [Expert]
(16.7k points)

Claude says: 

This is actually very doable. The developer laid out exactly what's needed — we just need to build the three pieces:

  1. A small Python script that receives a paratext://LUK 19.4 URL, writes the reference to the registry, and broadcasts the Windows message
  2. A one-time setup script that registers the paratext:// protocol in Windows so clicking such a link invokes our script
  3. Updates to the spreadsheet scripts to write paratext:// hyperlinks onto verse reference cells

Want me to build all three? The main unknown is the exact reference format Paratext expects in the registry value — we may need one test click to confirm whether it wants LUK 19.4 or LUK 19:4. Everything else is straightforward.

Paratext linksACT 2.1/

that turn Paratext to a specific BCV focus are now working in my spreadsheet. Claude could not make it work via the registry, so it wrote a Python script to make it work by another method. It brings Paratext to the foreground, then types Ctrl-B and enters the BCV info. Paratext_bcv_handler.py. It's in this folder with the other files for this project. These files may not be kept up to date in this folher as I refine this process. 

0 votes

Scrolling with Paratext requires 2 things:

  1. Putting the destination reference in a registry setting
  2. Sending a custom Windows Message

I'm not sure how to do either of these from Excel, but maybe a VB script could do it. I can provide more details if you find you can do these steps.

by [Administrator]
(3.4k points)

Related questions

0 votes
1 answer 23 views
When we insert a figure in Paratext, it automatically creates a .jpg version of the image and puts it in the shared folder ... for any help you can give me on this. John Nystrom
john_nystrom 312 asked Jun 25
0 votes
1 answer 771 views
How can I delete a project in registry.paratext.org that is no longer needed?
dcb 194 asked Mar 28, 2024
0 votes
2 answers 24 views
I am going through the mixed-capitalisation inventory for a project with many hyphenated place names in the book of ... it would help the translators to interpret the results.
anon399461 123 asked May 1
0 votes
1 answer 84 views
I've heard for a long time that PTXprint does not require Paratext to be installed. But the process of using ... PTXprint short of creating a dummy Paratext project? Thanks, Jeff
jeffh 1.4k asked Jan 6
0 votes
1 answer 19 views
I have read through "Glossary Best Practices" (https://support.bible/3952/glossary-best-practices?show=3952#q3952). The information ... 'off', I'd sure appreciate it! Thanks, Paul
Paul 642 asked Oct 21, 2025
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,044 questions
6,003 answers
5,671 comments
2,026 users