Update: Here are the files I promised.
Lately I’ve tried to create a better workflow between Scrivener and my mobile—a brand new HTC One. The problem I’ve had is that Scrivener exports to only 3 formats: TXT, RTF and FDX. I’ve never used FDX (Final Draft) files before, TXT format removes all the formatting, and RTF is not really recognised by the majority of Android writing apps. I really want to be able to revise my novel on-the-fly or when the mood strikes.
What I’ve managed to do (Mac only, sorry) is setup Scrivener to sync to Dropbox and link up to Dropbox with Draft, my favourite writing app. Draft makes this process very easy. Then I output my files as RTF files to Dropbox and then use a few bash script files I’ve created—that include Python scripts that others have created under the GNU license—to convert between the RTF and Markdown formats.
What is Markdown? It’s a new format that uses * and _ and # (as well as other characters) to emphasise a document’s format and layout in a way that can be easily converted for blogging or a web page, but has enough flexibility to be applied to other types of documents. I find it easy to use and intuitive in a way that Word etc. are not.
To implement this workflow, here’s the step-by-step process:
To begin: Download the files and extract them to the same directory in Dropbox you sync your Scrivener documents to. For example, if you sync to Dropbox\Project, extract the files there. This only needs to be done once. You also need to have the Dropbox application installed on your Mac, so if you haven’t done this, I’d set it up first.
- Sync Scrivener to this directory. Remember to select RTF as your format for external files (in both dropdown boxes—only needs to be done once).
- Open a Terminal window (the Terminal program usually exists in Applications->Utilities).
- Type ./rtf2md Draft/*.rtf to convert all the RTF files in the Draft folder; then ./rtf2md Notes/*.rtf to convert all those in the Notes folder.
- Now all the files are ready in the MD format. You can leave home and load up your writing app on your phone and write away like a demon.
- When you arrive back home, go back to your Terminal window and type ./md2rtf Draft/*.md and/or ./md2rtf Notes/*.md
- Your files are now converted back to RTF. Sync Scrivener and your done.
Caveat: Markdown format uses some escape characters. An escape character is a character with a \ next to it, like \#. What this indicates is that the # character is a special Markdown character—indicating header size, in this case. If there is a # in the original Scrivener document, to avoid confusion a \ is appended to the # when converted. Be aware of this when editing your .md files (some writing apps take care of this and don’t show you the \, some do). When you convert back to RTF and sync to Scrivener these \ marks disappear and the text appears as normal.
I’m sure I can automate the process further: perhaps doing a check for files changed that day in the directory and only converting these, or creating another directory in Dropbox and a script that runs when a file is changed so new files are marked when synced. The sky’s the limit.