I’m writing a visualization tool for Scrivener, because the one I was trying to use annoyed me with some sync issues.
I’d like to go beyond what it was doing anyhow and allow the user to click on an element in my app to navigate into the Scrivener project. Basically I want to open a scrivlnk://{Document ID} hyperlink, in Scrivener, from outside of Scrivener.
Even under Navigation, I don’t see the ability to go to a specific document directly; the closest is by navigating a tree.
If you are using Scrivener 3, try
Edit → Copy Special → Copy Document as External Link.
(I know it works on the Mac, haven’t tested with Windows.)
Programmatically, you could automate this by parsing the .scrivx file, which is the master index used to build the Binder. Probably best to do so as a read-only task: editing the .scrivx file outside of Scrivener is quite likely to break the project.
Thank you, Katherine. I am using the V3 Windows Beta. The project format is nice for this. I’m already parsing the scrivx file, and not writing back to it; the point of the deep-links is to nudge users (e.g. me) to update the data using the Scrivener Inspector, from which my program grabs what it needs.
Perfect! Thank you!
It has an odd characteristic of opening the referenced link into a new pane, but good enough.