At 10:19 pm +0100 27/9/04, John Delacour wrote:
The Applescript script below creates a UTF-8 encoded .vcf file on your desktop containing all your contacts:
Actually that needs to be modified. The script below will give you either a file with no blank lines or a file with a blank line only between cards.
set _lineending to ASCII character 10 set f to ("" as Unicode text) & (path to desktop) & ¬ "addresses.vcf" as file specification try close access f end try open for access f with write permission set eof f to 0 tell application "Address Book" repeat with i from 1 to count people set _card to vcard of person i (* blank line between cards *) --set _paras to paragraphs of _card (* ... or No blank lines *) set _paras to paragraphs 1 through -2 of _card repeat with _line in _paras tell me to write _line & _lineending to f as «class utf8» end repeat end repeat end tell close access f read f