Can you use Python and Scrivener together?

Sure.

One that I didn’t actually try is a solution to a particular problem a colleague was having. Read the thread here: Story Inventory Management System

Here are some of my more recent script files:

Let’s see…most of these are for Obsidian, but for Scrivener fix_em_dashes.py fixed a bunch of em dashes that were messed up. I think I caused that with a Scrivener search and replace, where em dashes were --- but I needed them to be . The script fixed them in the .md files in the Sync folder. I synced them back to Scrivener and the problem was solved.

I’ve had occasional things like that and wrote scripts to solve, then deleted the scripts.

The “compile_manuscript.py” is an interesting one, though it’s for Obsidian. It takes my novel’s chapters and scenes and puts them into a nice Word file, complete with chapter numbers and scene names.

UPDATE: I had given the wrong link to the other discussion. Also, the script I mentioned that compiles to a Word file is for Obsidian, not Scrivener. These errors are now corrected. Sorry about that.

1 Like