Mass Import Yojimbo Passwords
Posted on | May 12, 2007 | 2 Comments
I 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: yojimbo, passwords, applescript
See Also
Comments
2 Responses to “Mass Import Yojimbo Passwords”
Leave a Reply
March 13th, 2009 @ 8:11 am
The download link isn’t working for this file, could you fix it?
Thanks!
March 16th, 2009 @ 8:33 am
Fixed it.
?