This Week's Sponsor:

Kolide

Ensure that if a device isn’t secure it can’t access your apps.  It’s Device Trust for Okta.


How To Export Notes from Yojimbo and Convert Them to .rtf

You know how much I love Yojimbo. It’s great information organizer for Mac OS X which lets you store all your data like text, photos and password in one big Library. I wrote a couple of posts about Yojimbo here and here, be sure to read them to get an overview of this amazing application.

Anyway, Yojimbo has one drawback: sync and export. The developers (BareBones Software) don’t seem to be willing to release an iPhone app anytime soon, so the only way to “sync” Yojimbo would be that of exporting the whole database to Dropbox and import it later on another machine. But still, this is not a real sync, nor ax export feature: you can’t view single items in the database.

So, I wrote an Automator workflow to export notes from Yojimbo and convert them to .rtf. It uses the textutil shell script (which should come by default on any Mac OS computer) and lets you view and edit all the notes you have in Yojimbo in external apps such as TextEdit. It has some limitations anyway, we’ll see them together.

Now, download this .zip file and extract the Automator workflow. It was compiled on my Macbook, so you’ll have to edit some details like folders locations. Fire up Automator and edit the workflow like this:

First, this workflow asks for Finder items located into /Users/yourname/Library/Caches/Metadata/com.barebones.yojimbo/.

This is where Yojimbo store all is library files with metadata (Tags, creation date) attached to them. The com.barebones.yojimbo folder has a huge list of subfolders inside it, so the workflow has to pick up the folder contents including subfolders and filter certain file types (notes). Anyway, the first action you should edit is Ask for Finder Items and choose “start at:” /Users/yourname/Library/Caches/Metadata/com.barebones.yojimbo/. You should also know that Yojimbo saves single entries (notes, photos, etc.) with its own file format like .yojimbonote. For this reason I had to force the workflow to filter .yojimbonote files and change the extension to .txt to make them at least readable outside of Yojimbo. This is not the best solution anyway, ‘cause many apps like Dropbox mobile won’t read a .txt file. But there’s a solution, let’s move on.

Now, create a new folder either on your Mac or in your Dropbox folder (you’d like to backup everything,huh?) and change the “To:” path in the Copy Finder Items action to the folder you’ve just created.Do the same for the next action, Ask for Finder Items. Now, the workflow will copy the. yojimbonote files to this folders, change the extension to .txt and make them sequential to better recognize them (because by default files names are like this: E4E06083-F74E-49F6-A7B5-BA9487844760).

Last, it’s time to convert the .txt files to .rtf. To do, we’ll use the textutil shell script which in the workflow looks like this:

This script will create .rtf files from the previous .txt. You’ll need to move the .txt then, so I put 4 last actions which filter the folder looking for .txt files and move them to trash.

And that’s it.

Now, some consideration about this workflow. As every other reverse engineering method, it’s not perfect and you may encounter some issues. The biggest flaw, anyway, is that the .rtf files you’ll have won’t be “clean”: you’ll notice some weird strings into the text file which are the attached metadata. However, these strings will only show up at the top / end of the file.

But still, if you want to get notes out of Yojimbo this works great.

#!/bin/bash
cd “/Users/ticci/Documents/Test/”
textutil -convert rtf *.txt

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.