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


Click here to return to the 'A command to convert text files into Address Book vCards' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command to convert text files into Address Book vCards
Authored by: iordonez on Sep 04, '03 04:52:11PM

How would this be used to Create a file with Names and E-mail addresses?



[ Reply to This | # ]
A command to convert text files into Address Book vCards
Authored by: logo on Sep 05, '03 04:22:18AM

That would be extremely useful.

Any good source to get info on even more fields?

I'm not really willing to pay big $$ for one of the few small utilities that would convert my 50 or so addresses!

Thank you in advance!



[ Reply to This | # ]
A command to convert text files into Address Book vCards
Authored by: pdowling on Sep 05, '03 07:40:46AM

Use the Address Book app to create an address card with all fields filled out. Drag it to the Desktop and open with TextEdit. You can then see all of the tags that are used.



[ Reply to This | # ]
A command to convert text files into Address Book vCards
Authored by: webentourage on Sep 05, '03 03:56:00PM
All you have to do is use the awk code I've modified below, and add another tab field to the text file with the email address.

eg: name [tab] phone [tab] email

awk -F\t ' {print "BEGIN:VCARD"; print "VERSION:3.0"; print "N:"$1; print "EMAIL;type=WORK;type=pref:"$3; print"TEL;type=WORK;type=pref:"$2; print "END:VCARD" $4; print $4 }' infile.txt > newfile.vcf

[ Reply to This | # ]