Tips: *Revisiting* My Workflow (again) for Launching .scriv Files in Marked and Scrivener Simultaneously

Back in May, 2014, I created an Alfred workflow that allowed for you to target a specific directory that houses your project files in Scrivener, select your file, and open it in both Scrivener and Marked 2 simultaneously for live preview markdown rendering whilst working in Scrivener.

The theory behind why I created it can be read in the original post here.

A few months ago a kind visitor to this site left a comment stating that the workflow I created, no longer worked properly. It’s been years since I constructed that workflow and since then Alfred, Scrivener, and Marked have gone through several versions, so it didn’t necessarily surprise me that something came unplugged.

Either way, it was an opportunity to revisit the workflow, and I am happy to report that I’ve since fixed it!

If you think the workflow could be of service to you, here are the steps to get it up and running.

One crucial checkbox:

Getting this workflow to function properly involves checking a box in Marked 2’s preferences. So before you do anything:

  1. Launch Marked 2 and click the “Marked 2” menu in the upper-left and then click “Preferences”.
  2. Click the “Apps” tab at the top of the preferences window
  3. Then, under the “Scrivener” section, check the “Open .scriv files in Scrivener when opened in Marked” box. Once checked you can close the preferences window if you want.
Install the workflow in Alfred.

Installing workflows in Alfred is still super simple. If you want to save some time, you can download the workflow file here. Once downloaded, double-click the file and that should drop you into Alfred’s workflow preferences pane, prompting you to import it.

That’s it! From here, you can tweak the workflow to better suit your needs. For instance, I’ve got my .scriv files stored in my “Documents” folder, so you may want broaden, or narrow, the workflow’s search scope.

In short, feel free to make it your own.

The steps to invoke the workflow haven’t really changed:
  1. Bring up Alfred and type “scrivmarked” (again, you can change this keyword in Alfred’s workflow preferences).
  2. Use you arrow keys to scroll up or down to highlight the project you want to open.
  3. Once highlighted. Hit the right arrow key.
  4. Scroll down to highlight “Open in Marked and Scrivener” hit enter.

That should open your Scrivener project in both Marked and Scrivener, ready for you to write blog posts or any content for the web!

Useful links:

Automation: Getting Your Words From Scrivener (iOS) into WordPress

Like many out there, I’ve been enjoying the heck out of Scrivener for iOS. The portability, the familiarity with the desktop client, the functionality therein… we all know it was taking its sweet time getting here, but I think we can all agree that the finished product surpassed our expectations.

One thing I was curious about though, was how I could port my original blogging methodology in Scrivener for the desktop, to Scrivener on iOS. I was even more curious as to whether there were even better ways to blog with it on the go, since iOS hardware is so damn portable.

Luckily there is, and I wanted to share it with the folks that may not know.

A little help from the iOS app ecosystem…

Out of the box, Scrivener doesn’t export text to blogs and it shouldn’t. That’s not its core purpose. For me at least, this omission of functionality wasn’t a let down. The good news though, is that there are plenty of apps out there that can pick up the slack in this regard and the one that did this best for me was an app called Workflow.

Now Workflow could merit its own post worth thousands of words alone. I’ll save you the geeked-out deep-dive though and simply say that, as its name suggests, Workflow is a universal iOS app that provides automated workflows for you on your iOS devices. It can accomplish a shocking amount tasks without a jailbreak and one of those tasks is exporting text from any iOS app to your WordPress blog via an action extension.

Keeping it simple so you can get back to blogging…

Instead of walking you through the process of how to create this workflow within the app, the kind developers of Workflow allow you to share your workflows via URL schemes. So all you should have to do is buy the app (on sale right now at a steal for $2.99 USD) and click this link here to install the workflow I created for you all, automagically! After the workflow shows up in the Workflow app, all you have to do hook up your blog to the workflow (by providing your login credentials) and tweak the settings within the workflow to taste.

I personally have mine setup to output to draft mode, allowing me to manually add a title and categories/tags before publishing live on my site. You can set it to however you like though.

Also, for all of you markdown lovers, I have set this workflow up to create markdown from rich text! So get on up and get your MD on!

“Sounds great! Got it all installed. How do I use it though?”

Once you have everything setup the way you like, all you have to do in Scrivener is simply write your post. Once that’s complete do the following:

  1. Highlight all of your text and copy it. Then tap the “Share” option.
  2. On the share sheet that pops up, look at the action extensions (bottom row) and look for the option to “Run Workflow”. This will then bring up the Workflow automations you currently have, one of which will be the Workflow you got from this post. Protip: If “Run Workflow” isn’t showing up, scroll all the way to the right of that row. Tap more. And add that option from the list that shows up of available actions.
  3. Just tap that, fill out any field prompts, and let Workflow do its thing!
  4. Once the workflow finishes, log into your site and verify everything is published as expected.
  5. Enjoy more blogging from your favorite writing app on the go!

That’s it! If you have the official iOS app for WordPress you can actually blog completely desktop free from any iOS device at your disposal! Pretty awesome right?!

So, from the top, here’s what you need to make this all work:
  • A phone or tablet the runs iOS.
  • Scrivener for iOS (though, this Workflow can work with ANY text editor on iOS).
  • Workflow (it’s universal so you just buy it once and it works on iPad or iPhone. Workflows will sync between the two devices as well.)
  • WordPress for iOS (if you want to not think about blogging on a desktop again.)

Tips: Getting Your Markdown in Scrivener to Display Quicker in Marked…

Hey everyone! Just a quick and easy tip for all of you folks who use Marked as your Markdown previewer when writing in Scrivener.

One of the microscopic issues I have with using Marked in conjunction with Scrivener is the lag between when you write your Markdown (or any text) in Scrivener, it autosaves, and a few seconds later it shows up in Marked. This isn’t a bug in either programs – Marked shows what your document looks like after it is saved, and Scrivener autosaves after a preset amount of time after you stop typing (usually a matter of seconds).

I know, I know, not a big deal. But did you know that you can change the amount of time it takes for Scrivener to autosave? You can! It’s in the preference pane. Open up Scrivener, head to into the preferences menu and click the general tab, you’ll find in there.


You can go as low as 1 second (I tried 0.5 seconds, no dice) in this field. Set it to that and close out of preferences. You should see a bit of an improvement to when Marked displays your Markdown now. It doesn’t get rid of the lag completely, but it does make it much less noticeable, creating a more seamless experience between apps.

So if it’s been distracting you or worse, keeping you from pairing these two juggernaut apps, try tweaking this auto-save time increment lower and see if that makes the experience any better for you. I know it did for me.

Writing and Tips: Creating a Custom Project Template in Scrivener

One of the most requested posts I’ve seen in the comments section of this site has been for me to do a write-up on how to create a custom project template in Scrivener. It’s something I honestly had never thought of doing until I started blogging in Scrivener using Markdown and MultiMarkdown. After using that system for a bit, I realized quickly that I’d want the exact same setup for the next year (and the year after that). Without a template, I’d have to recreate everything in that project layout from scratch.

It was the first time I’d encountered a situation in Scrivener where I needed the initial layout of a project (folders, metadata, doc templates, etc…), to be a repeatable affair. Sure it’s easy enough to start a new project and recreate everything (easy, yet time-consuming), but wouldn’t it be great if I had a boilerplate starting point that did it all for me?

Luckily, as always, Scrivener makes creating such a setup quite easy.

One and done.

At first, I thought I’d use a previous project that was ideal for my needs and create a template from that. Good idea right? But then I realized that when you create project template in Scrivener, it takes literally everything in that project and adds it to the template.

In short, I’d get the bits I needed, but I’d spend even more time deleting the stuff I didn’t.

So, to avoid that situation, you need to to start a new project with zero content in it (I used Scrivener’s blank template). From here, you need to recreate only the skeletal structure of the elements that you are going to reuse moving forward. In the case of my blogging system, I only wanted the basic structural elements that I knew I’d need year after year. So that meant the folders for the months, useful, but generic meta-data, a doc template with pre-filled Markdown in it that I use in every post, and anything else that I’d recreate next year.

Once you have all of that set up, it’s time to create your template!

File > Save As Template… not File > Save As…

I remember striking out initially, while looking for this option under the “Save As…” and “Export” sub-menus under “File”. But I quickly saw the magical “Save As Template…” option and all was well.

Save As Template

Once you have your template structure in order. Head up to “File” and then look four options up from the bottom to find “Save As Template…”. Go ahead and click that.

This brings up a “Template Information” window where you can name your template, give it a description, assign an existing Scrivener category to it and even give it fancy custom icon so that it stands out the next time you create a new project.

Choosing A Custom Icon

Once that’s all sorted, click the “Ok” button and you’re done. Easy peasy.

Now you can either save the boilerplate project to add to it later or, if you feel confident that you nailed it on the first try, you can delete it. Don’t worry. You won’t lose your work. The template is safe and sound in Scrivener’s “Application Support” folder on your hard drive.

Let’s Take It For a Spin!

New Template

Now all you have to do to use your new template is start a new project in Scrivener. Select the category you assigned to it and choose your custom template. Once the new project comes up, you’ll see all of that beautiful time you just saved!

Prefilled Layout

Now go have a tall libation. You’ve earned it! :)