Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Import Address Book records into to Thunderbird Apps
I switched from Apple's Mail.app to Mozilla's Thunderbird email client recently, and really wished I had all my contacts in Thunderbird for sending emails quickly. I looked in the Thunderbird Address Book, and there was an import option that took a CSV file. I next went to Apple's Address Book and looked for an export option, and found I could only export one card at a time.

So I did the only logical thing a programmer would do -- I created an AppleScript that would create a CSV file of all my contacts in the order that Thunderbird was looking for. The code will not win any beauty pageants, but it gets the job done. The applescript can be found on my AppleScript Page.

This script uses Address Book and Text Edit; when it's done, just save the new text edit document as filename.csv to your Desktop, and then open Thunderbird address book and import the filename.csv file.
    •    
  • Currently 1.71 / 5
  You rated: 2 / 5 (7 votes cast)
 
[123,206 views]  

Import Address Book records into to Thunderbird | 27 comments | Create New Account
Click here to return to the 'Import Address Book records into to Thunderbird' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Import Address Book records into to Thunderbird
Authored by: ashill on Sep 07, '04 11:11:03AM

The second link should be http://, not hemp://. :)



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: aamann on Sep 07, '04 12:33:41PM
As a more flexible alternative (you can select what group(s) to export and which fields you want to have in the output file) - you might want to check out the "Export Addresses" script which is part of the freeware "Mail Scripts":

http://homepage.mac.com/aamann/

[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: momerath on Sep 07, '04 12:43:57PM

Thunderbird doesn't handle vCard files? That seems strange.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: Crimson Napkin on Sep 07, '04 01:52:35PM

Slightly off topic but why would one switch to Thunderbird from Mail.app?

---
macosxhints.com is one reason PC users should switch to a Mac.



[ Reply to This | # ]
Mail.app mailboxes require a click to update
Authored by: the_webmaestro on Sep 07, '04 02:55:17PM

One reason I've found, is that Mail.app mailboxes appears to require an occasional click to update its content. It's frustrating, but often I have found that one of my mailboxes has received mail, but Mail.app doesn't alert me to this fact. I've 'watched' my mailbox drawer all day, only to find that I've received a msg but Mail.app did not make the box 'bold'. I've got "Check for new mail:" set to "Every minute" but that only seems to help for the InBox. I've got rules which places mail in sub-folders, and those don't update unless I click...). I also have "[x] Automatically synchronize changed mailboxes" checked.

I switched to Thunderbird (only to switch back), because I want the interaction with iApps (namely Address Book) more than I want an updated mailbox list. I think Thunderbird is quicker, though...

This hint would help to an extent, but I don't want to have to re-export/import every time I add a contact.

In any case, Mail.app keeps getting better, so I like taking advantage of the improvements...

Web Maestro Clay

---
Father of Jeremy Logan



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: judolphin on Oct 25, '04 10:21:44PM

Because Mail.App is incredibly buggy when handling IMAP accounts; no program on any platform (in my opinion) handles IMAP better than Thunderbird.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: TomHopper on Dec 11, '04 07:03:14AM

Firefox allows you to create HTML-formatted emails, with lists (ul and ol), embedded links (a href=...), and so on. It appears to support most of the HTML 4.0 entities, which I find comes in handy when I need to convey more complex information than can be easily dropped in to a text email (I use it on my Windows machine).

Other things it does that Mail doesn't: support for newsgroups; RSS; and saved search folders.

If it integrated (or just synched) with the Address Book, I'd use it on my Mac.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: lanny on Jan 26, '05 05:47:49AM

nntp



[ Reply to This | # ]
Maybe an easier idea...
Authored by: aboswell on Sep 07, '04 03:27:15PM

In this months Mac Addict I think there is a letter like yours going to Entorage. The suggestion was to select all (cmd+a) the contacts in the Address Book and then drag them to your desktop. You then have a file called vCards.vcf on your desktop that you should be able to import anywhere that accepts the format.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: mith on Sep 08, '04 10:21:35AM

I actually would like to have the addressbooks shared or synced!
At least the "personal addresbook".



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: raster on Sep 09, '04 01:22:31PM

Then you might want to use an LDAP server, and point all of your email clients at it.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: quentinsf on Sep 13, '04 03:33:31PM

But does anyone know a really user-friendly interface for updating an LDAP server? Or even better, for syncing one with desktop apps?

I'd love to use LDAP more, but it always seems to be something of a read-only medium for normal users!



[ Reply to This | # ]
A better idea ...
Authored by: hardcoreUFO on Sep 12, '04 05:10:36PM

Use a proper OSX mail client that uses the Apple address book. To release an OSX that does not use it shows the shallow committment that Mozilla has to OSX. While Camino is a great browser, Thunderbird is a very mediocre mail client for Macintosh.



[ Reply to This | # ]
CSV is what Google's GMail uses too, to import contacts
Authored by: ~bc on Sep 27, '04 11:50:59AM
I'm appending this comment so hopefully people who are looking to find a way to export their Apple Address Book contacts to GMail's CSV based contacts database, will find this as their top search! Thanks for the scripts. http://briandigital.com http://recently.rainweb.net

[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: quentinsf on Nov 01, '04 08:04:22AM
That script is great - many thanks. The only issue I had was that some of my entries had line breaks in them which get passed through to the final CSV file. I added the following function at the beginning of the script:

-- strip any line breaks
on stripnl(s)
	set news to s as string
	set text item delimiters to "\n"
	set w to text items of s
	set text item delimiters to " "
	set news to (w as string)
	return news
end stripnl
and further down inserted this before the lines that add the text to the end:

set m_dataForThisPerson to my stripnl(m_dataForThisPerson)
It's also worth making sure that your TextEdit preferences are set to creat new documents as Plain Text, otherwise you'll need to convert it before saving

[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: quentinsf on Dec 24, '04 06:08:49PM

I've made a couple more tweaks to the latest version of Sean's script. You can find my version here:

http://www.statusq.org/archives/2004/12/24/552/

Quentin



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: mikebremford on Nov 02, '04 11:21:10AM

I've written a little Java app which converts a group VCF as exported by OSX AddressBook to an LDIF file as imported by Thunderbird. It handles multiline addresses, Unicode and so on, and you can run it from the command line or double click on the JAR to run as a GUI.

It's pretty simple but should work for most cases, and if not source is included in the JAR. It's at http://big.faceless.org/misc/vcf2ldif.jar.



[ Reply to This | # ]
vcf2ldif.jar
Authored by: Jez_gee on Nov 26, '04 04:50:10PM

Having spent hours trying to find a way to copy these addresses from mail to thunderbird i stumbled across this page, some useful hints which i tried to use. However, I couldn't get any of them to work correctly, all got to a stage with the information across, but without the necessary formatting. The vcf2ldif.jar program looked promising, however when run, i received nullpointer and arrayindexoutofbounds exceptions. Has anyone got any other clever tricks or a errorless version of the Jar file. Please help, spent far to long trying to get this to work!



[ Reply to This | # ]
vcf2ldif.jar
Authored by: emrecio on Mar 15, '05 01:24:38AM

I get the same error... how do I make this jar file work?



[ Reply to This | # ]
vcf2ldif.jar
Authored by: oniseijin on Apr 18, '05 01:11:16AM

A little late, but I have created a patched version of this jar.

The problem was that it was assuming the encoding was UTF-16, and then there was a minor problem with how the F tag was "N" tag was handled.

For the GUI you select the encoding from a list, defaults to the default for your system, and the command line accepts the encoding as the second argument.

I have not put the code up anywhere, so contact me for it.

Ryan



[ Reply to This | # ]
vcf2ldif.jar
Authored by: oniseijin on Apr 18, '05 01:47:51AM

Update, I have put this code up....

http://mills.zapto.org/projects/vcf2ldif/



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: purplepain on Feb 02, '05 07:52:29AM

That was fantastic, nothing else worked but that for me - thanku



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: fluffhead612 on Mar 29, '05 02:16:22AM

Another method, which worked very well for me, is to use the Plaxo (plaxo.com) account I have leftover from my Windows days, may I never think of them again.

Exported all my cards from Address Book, imported into Plaxo via their simple web dealie, then exported back out as LDIF and into Thunderbird. Took 2 minutes.

No scripts, no Java, not particularly slick, but effective nonetheless.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: tychay on Jul 26, '05 01:42:35PM

Why may you never think of Plaxo again? Well in any case, you don't have to just use Plaxo as a one-time import of contacts. With the Plaxo Thunderbird Client you can use Plaxo as a poor man's (i.e. free) dotMac synchronization client as it will keep your contacts in Tbird synchronized between all your machines.

Now all we need is a Address Book client....



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: ito on Sep 08, '06 01:26:50AM
There seems to be a patch for Thunderbird to work with the apple address book. see this at bugzilla

[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: LostInSpace2011 on Oct 28, '06 10:48:10AM

AddressBook X LDAP j2anywhere.com supports the Thunderbird LDAP schema and offers the capability to directly export contact information form the local Address Book to an shared LDAP server. It has support for SSL to ensure a secure transfer as well as provide internet access.

The project page for AddressBookXLDAP can be found here.

This project is largely community driven and open to suggestions and comments.



[ Reply to This | # ]
Import Address Book records into to Thunderbird
Authored by: jms1 on Jan 03, '07 08:58:36AM

"largely community driven?" please.

i just looked at the site- the guy doesn't offer source code at all, and he wants GBP £15 for a license. that price might make sense for a business, but when you consider that's almost USD $30, it seems a bit expensive for personal use (at least in my opinion.)

sounds more like "profit driven" than "community driven" to me.



[ Reply to This | # ]