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


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: 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 | # ]