Export address book for Gmail account

Hello!
I would like to export my address book as a CSV file for import into Gmail. Address book can export a vcard, but I don't see anything about CSV.
I'd enter it manually, but I'd MUCH rather use my current address book - it's correct, and I don't have to type in stuff!
Thanks,
Dan

Here is an Applescript I wrote for just that purpose. It's a little rough but all your main info is translated to Gmail fields. Do not use this script for a "backup", as it drops a lot of fields.
I have been the only one to use this, so reports/complaints are welcome. Script beeps when finished, and the file appears on your desktop.
-- Export to Gmail.scpt
-- version 23 May 2006
-- http://Gnarlodious.com/
set separator to ","
set gmailElements to {"Name", "E-mail", "Notes", "Section 1 - Description", "Section 1 - Email", "Section 1 - IM", "Section 1 - Phone", "Section 1 - Mobile", "Section 1 - Pager", "Section 1 - Fax", "Section 1 - Company", "Section 1 - Title", "Section 1 - Other", "Section 1 - Address", "Section 2 - Description", "Section 2 - Email", "Section 2 - IM", "Section 2 - Phone", "Section 2 - Mobile", "Section 2 - Pager", "Section 2 - Fax", "Section 2 - Company", "Section 2 - Title", "Section 2 - Other", "Section 2 - Address"}
set exportedFile to (path to desktop as string) & "Gmail Upload.csv"
set indexLine to ""
set elementsCount to count of gmailElements
repeat with loopVar from 1 to elementsCount
set indexLine to indexLine & item loopVar of gmailElements & separator
end repeat
set indexLine to text 1 thru -2 of indexLine
tell application "Address Book"
--try
open for access file exportedFile with write permission
write indexLine & return to alias exportedFile
repeat with loopVar from 1 to (get count of every person)
set thisRecord to person loopVar
try -- name
-- this method does not fail if text is already plain
set {text:result} to (name of thisRecord as string)
on error
end try
set csvLine to the result
try -- primary email
set {text:result} to (value of email 1 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
-- the "notes" field cannot be deleted, so lets use it for something informative like nickname
try
set {text:result} to (nickname of thisRecord)
on error
end try
set csvLine to csvLine & separator & result
(* set {text:notes} to (note of thisRecord as string) -- note
if notes is "missing value" then set notes to "" *)
try -- description
set {text:result} to (value of related name 1 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- alt email
set {text:result} to (value of email 2 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- AIM
set {text:result} to (value of AIM Handle 1 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- phone 1 (same as phone)
set {text:result} to (value of phone 1 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- phone mobile
set {text:result} to (value of phone 2 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- pager
set {text:result} to (value of phone 3 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
try -- FAX
set {text:result} to (value of phone 4 of thisRecord as string)
on error
end try
set csvLine to csvLine & separator & the result
if company of thisRecord is true then -- company
-- set {text:result} to (name of thisRecord)
"company"
else
end if
set csvLine to csvLine & separator & the result
try -- city
set {text:result} to (city of address 1 of thisRecord)
on error
end try
set csvLine to csvLine & separator & the result
-- -- skip title as I do not use them
-- set csvLine to csvLine & separator
-- try -- Other field will be URL
-- set {text:result} to (value of url of thisRecord)
-- on error
-- end try
-- set csvLine to csvLine & separator --& the result (error, commas in Google Maps URLs need to be escaped)
write («class ktxt» of ((csvLine as string) as record)) & return to alias exportedFile
-- write csvLine & return to alias exportedFile
end repeat
-- on error
-- close access file exportedFile
-- end try
close access file exportedFile
end tell
beep
  Mac OS X (10.4)  

Similar Messages

  • "my card" in address book for system accounts

    I have four macs.. I would love to have them refer to the same card in the Address Book for my logon.. instead I have four seperate cards.. Can anyone give me any leads?

    no help here .. but hey I am down to two macs with my G% and powerbook dying.. less of a [problem

  • Address Book from Gmail Account

    How can I download address book direct from my Gmail Account instead of importing it as CSV file?

    It's possible to synchronize Gmail contacts in TB:
    https://addons.mozilla.org/en-us/thunderbird/addon/google-contacts/
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • Does the Export Address book work also with Mavericks ?

    I want to export my address book to excel file ? Does the Exporter address book for mac was tested with MACOSX Maverick ? Is it going to work ?

    For the next person to come along, here are Microsoft instructions for formatting leading Zeros in Excel. http://support.microsoft.com/KB/81518
    An image of the phone number being set to text in Excels import Wizard. I don't have the 2007 version available to test, but I do not recall it being any different about a decade ago.
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-20-22-53-96019d.png". and a link to the Microsoft documentation for Excel 2007 indicating that dialog was in Excel 2007 as well. http://office.microsoft.com/en-001/excel-help/text-import-wizard-HP010102244.aspx?CTT=5&origin=HP010099725

  • Address book issues - duplicates - accounts don't match

    I have found duplicates entries for some of my address book entries, but not all.
    As previously discussed in these forums, this turned out to be duplicates between the "On my Mac" and "iCloud" accounts.  So I can deal with that.
    However, upon looking at entries between these 2 accounts, I noticed that I have some entries in each account that are not present in the other account.
    Here is a "made up" example to illustrate:
    On My Mac
    Johnny Appleseed
    Jim Cogsworth
    Bob Jones
    Jason Smith
    iCloud
    Johnny Appleseed
    Robert Blabla
    Bob Jones
    Amy Thomas
    So from this example, I have:
    2 contacts in both accounts:  Johnny Appleseed & Bob Jones
    2 contacts only "on my mac":  Jim Cogsworth, Jason Smith
    2 contact only in "iCloud":  Robert Blabla, Amy Thomas
    This is what I have found on my Mac, only it is far bigger than just a couple of contacts.
    Is there any way to get the accounts in sync?
    Or is there any way to move a contact from one account to another account?
    Running 10.7.5 due to 3rd party software incompatibilites with Mt. Lion.

    Great.
    I think the TM restore would have been much quicker. I was under the assumption that everything was good on the Mac address book.
    Not sure what happened since then.  Did you read my post (at 2:01pm above) before things went wrong?
    "Try this. Disable iCloud on your mac. Select to keep contacts on the computer when quiting. Verify address book contains all your contacts. If you don't have a backup such as TM, export address book contacts so you will have a backup.
    Your address book should have been correct or you could have corrected the contacts then and you would have had the backup files exported if you didn't have or trust TM.
    Go to the iCloud website and delete all contacts there.
    At the iCloud website, you should have been able to select all addresses at one time and delete. That would have left no addresses in iCloud. Only addresses left should have been on your Mac from the last step.
    Once done, go back and log into iCloud on your computer and merge the contacts. The website should now contain the addresses from your address book.
    Unless something else was wrong and creating multiple contacts, the only addresses in iCloud would have been merged from what was in your address book on your computer.
    I don't know what happened or where we went wrong. I'll check back in the morning if you post any other info.
    Hope it works out.

  • Separate address book for my wife and I

    I reently switched to Mac and this is driving me crazy. I would like to keep our computer under one user so we don't have to switch user profiles to access her address book or if I update and address in my book, it doesn't get updated in hers. But, when I go to address e-mails I don't want her huge list of names being auto-suggested and me having to sift through all of her addresses in order to find the people I want to address the email to. The question: Is there a way to keep all of our addresses in one address book (one user profile), but when I am logged into my mail, Mail knows to only look in MY address group for the email addresses I specify, instead of pulling up my wife's rediculous sized (and often unorganized) bunch of addresses. I don't want to accidentally slip up with the arrow keys and add one of her recipients to an outgoing email. Sometimes my wife's friends wouldn't appreciate emails that guys send to each other if you know what I mean...
    Thanks for any help...and please tell me there is a way to separate my wifes email address book from mine...please tell me Mac thought of this.
    PS I've tried the whole 2 user profiles thing and the idea of seperate address books for updating sake and other reasons, I'd like to try the single profile thing.

    I thought Mac would be better with their mail client than this.
    But Mail has nothing to do with this at all. Address Book is a completely separate application, and it's that way for good reason; it's not merely a whim.
    I can't imagine what Mac is thinking that if a family of 5 uses the family computer, that all 5 people's email addresses clog up the search for the person writing the email at the time.
    Each user has a separate Address Book (and other applications like Mail and Safari) to keep that exact scenario from happening, as well as to keep people out of each other's accounts so things don't go missing, private emails aren't being read by overly curious people, and so your account doesn't get screwed up by someone else playing with things they shouldn't be touching.
    Are there any third party apps or plugins I can download in order to tell Mail that when I am in my account to only search for the contacts in a certain group that I create?
    Sorry, but there's no such things available. It would be impossible for your Mac to become sentient and know what you created versus someone else creating.

  • Sync Mac Address Book - multiple Google accounts

    I hope this is the right place for this question.
    I understand that you can sync the Mac Address Book with Google accounts, but is there a way to sync that Mac Address Book with MULTIPLE Google accounts.
    Our scenario is that we have one iMac as our main database, and want to sync it to mine, and my wifes Google account.
    Thanks for any help.

    I have found a program called Spanning Sync
    http://spanningsync.com/
    It allows for multiple Google syncing

  • Creating 2 address books for different users?

    my wife and I don't want to login as separate users on the powerbook, but we do want to be able to import and synchronise our address books from our palm PDAs and keep the addresses separate. So far it seems that we would merge the addresses into the "all" group the first time we synch. Is there a way to set up 2 different users?
    your help appreciated to keep my partner happy!!

    No there isn't.
    In order to do so, you must create a login user account for your wife. She will have you own Home folder/directory which will include her Address Book contacts, email account or accounts in Mail, etc.
    You can enable Fast User Switching which makes the process of switching between user accounts a fast and easy process.

  • How to export Address Book content as Unicode with applescript?

    Hello,
    I have a problem for exporting address book content. I'd like to export "My Card" to a vcf file and use another application to read it. So I have the following applescript:
    *+tell application "Finder"+*
    *+set theFolder to folder "TemporaryItems" of folder "Caches" of folder "Library" of home+*
    *+end tell+*
    *+tell application "Address Book"+*
    *+set theVcard to (vcard of my card) as Unicode text+*
    *+set theFile to (theFolder as text) & "myCard.vcf"+*
    *+set theFileHandle to open for access theFile with write permission+*
    *+-- write (ASCII character of 254) to theFileHandle+*
    *+-- write (ASCII character of 255) to theFileHandle+*
    *+write theVcard to theFileHandle+*
    *+close access theFileHandle+*
    *+end tell+*
    OK, now the problem is that if "My Card" has any double-byte characters like Chinese or Arabic, the output file will just hold some question marks ("??"). The code works in Tiger but not Leopard. (Add char 254 and 255 just to make it a UTF16-BE file. So it doesn't really change the result of this script.)
    I started digging and guess here is the reason: in the following statement the "vcard of my card" will always return plain text:
    +*set theVcard to (vcard of my card) as Unicode text*+
    I got this clue from the help of ScriptEditor:
    +*vcard (text, r/o) : Person information in vCard format, this always returns a card in version 3.0 format.*+
    But in Tiger, you can see:
    +*vcard (Unicode text, r/o) : Person information in vCard format, this always returns a card in version 3.0 format.*+
    Any workaround to solve this problem?
    (And if this is not the right place to ask such question, please just let me know.)
    Thanks a lot!
    Calvin

    Hello Calvin,
    Since your code works under OSX10.4 and fails under OSX10.5, the cause would be the change made in AppleScript 2.0.
    Try -
    write theVcard as Unicode text to theFileHandle
    instead of -
    write theVcard to theFileHandle
    The read/write commands in AS 2.0 have been change so that they will always interpret the text in system's primary encoding if 'as Unicode text' is not specified in commands' parameter.
    cf.
    http://developer.apple.com/releasenotes/AppleScript/RN-AppleScript/index.html
    Unicode Support
    http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangG uide/
    pp. 151-153, 168-169 (of pdf version)
    Commands Reference > read, write
    Hope this may help,
    H

  • Address books for another user sharing my computer for now

    At this time I am sharing this computer with one other person ..I have set up and named another address book for them.
    Is there a way that their email addresses do not get added too mine.. is there a setting where we can set it up so each one has there emails being added to their own addy book.. At the moment there emails are being added too mine... this problem will be ongoing fpr a period of time....
    Thank you in advance. :)

    ''re: At this time I am sharing this computer with one other person .''
    Usually, when people share a computer, each user has their own User Account which they logon using a password.
    This means that Thunderbird then runs in that User Account and creates a profile in that User Account which holds all the Profile data, emails, passwords, address books etc specifically for that users email address mail accounts.
    So then no one can read each others emails nor access other peoples passwords and they can use their own address books.
    So if you are sharing a computer and sharing a Profile, then it is advisable that you do not have any stored / remembered passwords, unless that person is eg: spouse and you do not mind them having full access to all your personal stuff.
    You have a couple of Options:
    '''1.''' Create User Accounts on your computer so that each user has their own User Account, Create a Thunderbird Profile folder and set up mail accounts storing personal emails and address books.
    This is the only method offering best security.
    '''2. ''' Create another Profile for the other person. then create mail account for that Profile. This will then have it's own folders, address book.
    Use Profile Manager to create another Profile.
    http://kb.mozillazine.org/Profile_Manager
    Make sure to uncheck the box 'Don't ask at startup' to force it to ask which Profile to use.
    Any user can still access any profile.
    '''3. ''' In current situation.
    Stop auto saving outgoing email addresses that are not in the address books as this uses only one setting per Profile.
    Tools > Options > Composition > Addressing tab
    uncheck: 'Automatically add outgoing email addresses to my'
    click on OK
    Then you would need to use an Addon in order to be able to select a specific address book when you wish to add the email address/contact to an address book. At the moment, if you click on the FROM header email address or right click and select 'Add to address book', this adds to the default address book called 'Personal Address Book'. This you cannot change because you are using the same User account and Profile.
    But with the addon 'MorefunctionforAddressBook'
    Right click on eg: From header and choose > Save recipients addresses' > as Contacts
    This allows you to select the address book you require.
    Addon 'MorefunctionforAddressBook':
    * https://nic-nac-project.org/~kaosmos/morecols-en.html
    Download to desktop.
    In Thunderbird:
    Tools > Addons
    Clickon on gear wheel icon and select : Install addon from file;
    locate file you downloaded and click on Open
    You may need to restart Thunderbird.

  • My wife has iCloud on our computer and I want to break out and create my own account. Once I build the account how do I copy the address book from her account into mine?

    my wife has icloud on our computer and I want to break out and create my own icloud account. I've built the account but can't figure out how to COPY our joint address book onto my account so I can then weed out my own addresses. Please help!

    Welcome to the Apple Community.
    When you log out of the joint account, you should be asked if you want to keep the contacts, you do. When you log into your new account you should be asked if you want to merge contacts, you do.
    If you have already signed into your new account and not taken these options, the simplest thing to do might be to add your wife's account back as a secondary account in system preferences > mail, contacts & calendars. In groups in address book you can drag contacts from your wife's contacts onto your contact group to copy them.

  • How do I Export Address Book data?

    Is there anyway to insert Address Book data into other (non-Apple) applications, e.g. Word?
    I want to send out some letters and I would like each letter to have the recipiants address at the top of the letter. Even if I could export the data to Excel first would be OK but I only seem to be able to export vCards from Address Book and Excel (nor Word) can read them?
    Any help would be appreciated.
    Thanks,

    Yink,
    you can use some third-party applications to export Address Book data as plain text files (e.g., csv) which you should then be able to import without any problems in Excel and the like.
    Some options are:
    • Export Addresses from Mail Scripts
    http://homepage.mac.com/aamann/
    • Address Book Exporter
    http://www.gwenhiver.net/address-book-exporter.html
    • Export Address Book
    http://software.dibomedia.de/ExportAddressBook
    Andreas

  • Export Address Book into Outlook

    How do you export Address Book to use in Outlook?

    You connect the iPhone to iTunes, select Outlook as to where you want to sync contacts, and calendar if you want, and then sync. The only thing you need to do is make sure if the Outlook on the computer is completely empty, put in a unique contact in Outlook to force the merge option to come up. See this support document http://support.apple.com/kb/HT1296

  • Keep getting incorrect password message when trying to sync my address book with google account. Anyone else have this trouble? Know of a solution?

    Keep getting incorrect password message when trying to sync my address book with google account. Anyone else have this trouble? Know of a solution?

    You can not create an iCloud account on a PC, you may create one on an iPad, iPhone or a Mac

  • Can not Create Address Book for new Supplier

    Hi,
    I am trying to create a supplier in R12. Under create Address Book for the supplier, I have created the address and when I select the operating unit and click apply, I am getting the following error:
    Address and Site Creation - Unable to create address and sites because of the following error when trying to create the site in operating unit [Anirudh Operations]: [ORA-01403: no data found in Package AP_VENDOR_PUB_PKG Procedure Validate_Vendor_Site]. Either resolve this issue and try again or deselect the operating unit with the error and continue. Note: any new address requires at least one site in order to be created.
    Oracle Version: 12.0.4 - Vision Database.
    Am I doing something wrong here?
    Any help is much appreciated.
    Thanks & Regards,
    Sasibindu.

    Looks like the responsibility you are using is pointing to a new operating unit created by some one. But for that operating unit all the fundamental options are not complete (financial, purchasing, payables and so on). Hence you are getting this error.
    If they are setup, you can try adding this operating unit into your security group associated to the MO: Security group profile and try.
    If not use the Vision Operations responsibility and give it a try.
    Thanks
    Nagamohan

Maybe you are looking for

  • My motor receives data via a serial connection, but it won't move. What am I doing wrong?

    Hello everyone, as the title says, I am trying to use a motor called "MP285" by Sutter Instruments via LabView. The control unit of this motor only has a RS232-output, but I use a Serial-to-Usb-Adapter to connect the device to the PC. My problem is t

  • Sales Forecast

    How to handle sales forecast in OM? For comparative analysis, user wants to input sales forecast per item in terms of quantity and sales amount for them to be able to generate and view report regarding the following: 1) Comparative Report Forecast vs

  • Ideatab A2109F [How to connect it tomy PC as storage memory]

    Hi, When I connect my Lenovo tablet to my computer (windows 7), i can see only a few files of the SD Card (extern). It is connected as multimedia device. I activate the USB debug, mais nothing change. How to do to be able to see all the files of the

  • Windows Fax Connection Timeout Value

    Like for most, sending a fax is a rare event and used to work with the currently installed hardware but doesn't with Win 8.1. It has been about a year since I sent a fax so I don't know when it stopped working. What is happening is that the fax numbe

  • Replacing multiple spaces with another character

    i need to replace multiple spaces with another char in a string my code is Dim text as String="a bit much             a little much" Dim arr As String() = text.Split({" "c}, StringSplitOptions.RemoveEmptyEntries)Dim newtext As String = String.Join("