Here’s my triumph of the day: getting Scrivener to export about 400 separate documents into a single file that you can then import into MaxQDA with a code that will then separate them out again into individual documents in MaxQDA. If you’re wondering why, it’s because the bulk of my data and a lot of memos and notes were entered in Scrivener, but I want to export it into MaxQDA to analyse it. Time taken? About 10 minutes to figure it out, 10 seconds to execute it.
To do such an import in MaxQDA, you need to prefix every title or separate section with #TEXT, so that the resulting document has #TEXTYourTitleHere before each section. When you import that document, MaxQDA creates a separate document at every point where it reads #TEXT, adding a title of its own if you haven’t specified one.
Here’s how I did it:
- In the Scrivener compile dialog, select the folder(s) that contain(s) the documents and subdocuments (if any) you want to send to MaxQDA.
- Use the “Custom” compile format, so that you can tweak the output
- In the compile dialog, select the formatting box, and make sure that the “title” box is checked against the level where the documents are that you want to see as separate documents in MaxQDA. When you click on the different levels, the corresponding documents in the binder are highlighted, so you can see exactly which level you need. ( I found that the titles of the subdocuments I wanted to include (level 2+) weren’t included in the compile by default, so I had to manually check the box)
- Click on the “Section Layout” button underneath the levels
- In the dialog box that appears (Title Prefix and Suffix) Add the word #TEXT – ensuring that you don’t put a space after the word #TEXT
- Now run the compile
- You will now have one big file that contains all your Scrivener subdocuments, with #TEXT appended to each title.
- Now import the compile file into MaxQDA using the “Import structured document (Preprocessor)” option.
- Sit back and watch all your Scrivener document structure replicate itself in MaxQDA.