In the Contacts app in OS X Yosemite it is currently impossible to import custom field labels when importing from a CSV file. I use a 3rd party app to manage my contacts and I would like to import the custom labels that I use for postal addresses, phone numbers and email addresses for my contacts.
If I create a field that merges the custom label with field data, and a separator character in between, would it be possible to use an AppleScript to extract the custom label, remove the separator character, and rename the field with the custom label?
For example, I currently have a custom label for a phone field:
Field Custom Label: Dad Mobile
Field Value: 123 456 7890
Merged Field: Dad Mobile;123 456 7890
When importing the file into Contacts via CSV I would map it to "phone other". So the phone field for the contact would look like this when imported:
other: Dad Mobile;123 456 7890
Again, the script would extract the custom label, remove the separator character and rename the field with the custom label, resulting in:
Dad Mobile: 123 456 7890
I am somewhat new to scripting.
Best Answer
Applescript to Create Contacts:
You can set custom variables based on your CSV parsing.
This should point you in the right direction. So, in answer to your question, with Applescript you can add custom fields. Just use a similar syntax to the above code. You just need to parse your CSV files accordingly. I don't know what 3rd party app you use, but this is routinely done directly from database apps such as Filemaker.
Further reading: vCard Wikipedia