VCF (.vcf)

MIME types: text/directory, text/x-vcard
vCard personal data format.
Commonly used in email and personal information management applications and on mobile devices.
Standard format for electronic business cards.
VCF is an acronym derived from Versitcard.
Stores names, addresses, and other contact information.
Can contain multiple records.
Plain text format.
Version 3.0 is described in internet standard recommendations RFC 2425 and 2426.
Developed in 1995 by Apple, AT&T, IBM, and Siemens.
  • Import fully supports VCF Versions 2.1 and 3.0.

Import and ExportImport and Export

  • Import["file.vcf"] imports a vCard as an array of rules.
  • Import["file.vcf"] gives an array of rules for each record and each data field in the file.
  • Import["file.vcf",elem] imports the specified element from a VCF file.
  • Import["file.vcf",{elem,suba,subb,}] imports a subelement.
  • Import["file.vcf",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","VCF"] or Import["file",{"VCF",elem,}].
  • See the reference pages for full general information on Import.
  • ImportString supports the VCF format.

ElementsElements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "Data"records arranged as a table
    "Labels"labels associated with the columns of the table given by the element
    "Records"rules for each record
  • Import uses the element by default.
  • Import["file.vcf"] reads all records and returns them as a list of rules.
  • Selecting individual data fields:
  • "NamePrefix"honorific prefix part of the name
    "NameFirst"given name
    "NameMiddle"middle name or initial
    "NameLast"last name
    "Organization"organization or institution name
    "JobTitle"title or position in the organization
    "Email"email addresses
    "Phone"phone numbers
    "Fax"fax numbers
    "MobilePhone"mobile phone numbers
    "BirthDate"birthday, given as a DateList specification
    "InstantMessaging"instant messaging addresses
    "Address1"street address
    "Address2"continued street address
    "POBox"post office box number, given as a string
    "City"city name
    "ZIPCode"ZIP code
    "State"state name or abbreviation
    "Country"country name
  • Import["file.vcf","City"] returns the city name for each record as a list of strings.

OptionsOptions

  • Import options:
  • "Attribute"Automaticspecifies what address type to import
    "EmptyField"Automatichow missing information is represented
  • Possible settings for are:
  • Allall addresses stored in the file
    Automaticselects a single address per record
    "Domestic"domestic addresses
    "Home"home addresses
    "International"international addresses
    "Postal"postal addresses
    "Shipping"shipping addresses
    "Work"work addresses
  • With the setting "EmptyField"->Automatic, no rules are returned for missing information.
Introduced in 2004
(5.1)
| Updated in 2007
(6.0)