=====================================
Yahoo Address Book 2 vCard

=====================================
SUMMARY:

This file will take your Yahoo Address Book in CSV format and convert it to a vCard format which is readable by Mac OS X Address Book.

Most people recommend that you export your Yahoo Address Book as LDIF format. The only thing is that when you export it that way, you lose all your home email addresses. But with this script, both your work AND home email addresses convert over from Yahoo to Mac OS Address Book.

=====================================
VERSION:

1.0
Jaunary 2, 2006

Download the script at:
http://www.spudart.org/php/yahooaddressbook2vcard.zip

Homepage for this script:
http://www.spudart.org/php/yahooaddressbook2vcard

Discuss this script at:
http://www.spudart.org/blogs/randomthoughts_comments/3365_0_3_0_C/
=====================================
STEPS:

1) Go to your Yahoo address book at http://address.yahoo.com/ and click on the "Import/Export" link in the upper right.

2) Under "Export", click on the "Export Now" button by "Yahoo! CSV"

3) Save the file as "Yahoo.csv" to your computer (without the quotes).

4) Upload "Yahoo.csv" to your website (let's say you put it, so it's at http://yoursite.com/convert )

5) Upload the "yahooaddressbook2vcard.php" file to your website. It's essential that this file is in the same folder as the "Yahoo.csv" file. (in our example this file will be at http://www.yoursite.com/convert/yahooaddressbook2vcard.php )

6) Now using your browser, visit the php file at http://www.yoursite.com/convert/yahooaddressbook2vcard.php

7) It will automatically convert your yahoo address book into vCard format. Copy and paste the text into a text file. Just make sure the text file is named so it ends with ".vcf"

8) You now have a vCard file with your yahoo address book in it. Open up Mac OS X Address Book and go to File > Import... > vCards...

9) Select your vCard file and wow! It's immported. :-)
=====================================
WHAT IT DOES IMPORT:

--First
--Middle
--Last
--Nickname
--Email
--Messenger ID
--Home
--Work
--Pager
--Fax
--Mobile
--Other
--Primary
--Alternate Email 1
--Alternate Email 2
--Personal Website
--Business Website
--Title
--Company
--Work Address
--Work City
--Work State
--Work ZIP
--Work Country
--Home Address
--Home City
--Home State
--Home ZIP
--Home Country
--Birthday
--ICQ ID
--Google ID
--MSN ID
--AIM ID

=====================================
WHAT IT DOESN'T IMPORT

This script will not import the following Yahoo Address Book fields:
--Category
--Distribution Lists
--Yahoo! Phone
--Anniversary
--Custom 1
--Custom 2
--Custom 3
--Custom 4
--Comments
--Messenger ID1
--Messenger ID2
--Messenger ID3
--Messenger ID4
--Messenger ID5
--Messenger ID6
--Messenger ID7
--Messenger ID8
--Messenger ID9
--Skype ID
--IRC ID
--QQ ID

Sorry, Address Book and vCard just don't support these fields.

=====================================
SCRIPT INFO:

Here's the entire list of what key is assigned to what Yahoo variable:
0 First
1 Middle
2 Last
3 Nickname
4 Email
5 Category
6 Distribution Lists
7 Messenger ID
8 Home
9 Work
10 Pager
11 Fax
12 Mobile
13 Other
14 Yahoo! Phone
15 Primary
16 Alternate Email 1
17 Alternate Email 2
18 Personal Website
19 Business Website
20 Title
21 Company
22 Work Address
23 Work City
24 Work State
25 Work ZIP
26 Work Country
27 Home Address
28 Home City
29 Home State
30 Home ZIP
31 Home Country
32 Birthday
33 Anniversary
34 Custom 1
35 Custom 2
36 Custom 3
37 Custom 4
38 Comments
39 Messenger ID1
40 Messenger ID2
41 Messenger ID3
42 Messenger ID4
43 Messenger ID5
44 Messenger ID6
45 Messenger ID7
46 Messenger ID8
47 Messenger ID9
48 Skype ID
49 IRC ID
50 ICQ ID
51 Google ID
52 MSN ID
53 AIM ID
54 QQ ID