Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

Mass Import Yojimbo Passwords

May 12th, 2007 · No Comments

YojimboI searched all over the place last night and I couldn’t find anything that could import passwords into Yojimbo for me. I did see a lot of complaining about the lack of ability to do so, however.

Since I really like the app in most ways except for its lame import capabilities, I whipped one up to import my 250+ password entries from a different program.

Get the program: yojimbo_passwords.tar

Read on for discussion of how to use it, or else just look at the instructions provided in the download.

How it works

It is a simple Python script that reads a tab-delimited file of your passwords, and loads them into Yojimbo using Applescript. It could be more efficient or flexible, in particular it doesn’t know how to handle passwords with quotes embedded in them, but it is a hack and it works and I’ve never seen anyone else even try to do it.

How to use it

Step 1: Make a tab-delimited file of your passwords, putting the field names in the first line like so:


name	account	comments	password	location
example.com	Bruce	Master login for Example	lemonaid23		http://example.com
another.com	Bruce	use when example is down	lemonaid24		http://another.com

Step 2: On the command-line, run the importer as a test first:


$ python yojimbo_passwords.py -t testload.txt
Loading: example.com
tell application "Yojimbo"
make new password item with properties {account: "Bruce", password: "lemonaid23", name: "example.com", comments: "Master login for Example", location: ""}
end tell

Loading: another.com
tell application "Yojimbo"
make new password item with properties {account: "Bruce", password: "lemonaid24", name: "another.com", comments: "use when example is down", location: ""}
end tell

The program will print an error if it can’t understand one of your input lines, so do give it a trial run first on your own password file

Step 3: Backup Yojimbo’s database. To do that, stop Yojimbo, and copy the files in Library/Application Support/Yojimbo to a backup location. Restart Yojimbo, since it needs to be running for the Applescript to work.

Step 4: Run it.


$ python yojimbo_passwords.py yourfile.txt

Done.

Technorati Tags: , ,

Tags: Tips · Open Source · Macintosh · Python

Bookmark this article

del.icio.us:Mass Import Yojimbo Passwords digg:Mass Import Yojimbo Passwords spurl:Mass Import Yojimbo Passwords wists:Mass Import Yojimbo Passwords simpy:Mass Import Yojimbo Passwords newsvine:Mass Import Yojimbo Passwords blinklist:Mass Import Yojimbo Passwords furl:Mass Import Yojimbo Passwords reddit:Mass Import Yojimbo Passwords fark:Mass Import Yojimbo Passwords blogmarks:Mass Import Yojimbo Passwords Y!:Mass Import Yojimbo Passwords smarking:Mass Import Yojimbo Passwords magnolia:Mass Import Yojimbo Passwords segnalo:Mass Import Yojimbo Passwords gifttagging:Mass Import Yojimbo Passwords

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment