Copying address book entries

what is the most efficient way to copy all (or most) of contact info of one person to another in Address book using applescript?
For example, to copy the address I tried
tell application "address book"
set address of person "X" to address of person "Y"
end tell
this runs with no errors but produces no result. same with phones. i can go through each individual address field but it's a major pain. is there a quicker way?

Hi VK,
Each person can have multiple addresses. Therefore 'addresses' of a person returns a list. Also you need to add the address data to the end of the list of addresses of the recipient card.
The following works for me (it's not particularly fast though):
tell application "Address Book"
set theAddress to (properties of (address 1 of person "X"))
make new address at the end of addresses of person "Y" with properties {label:label of theAddress, street:street of theAddress, city:city of theAddress, state:state of theAddress, zip:zip of theAddress, country:country of theAddress, country code:country code of theAddress}
save addressbook
end tell
Best wishes
John M

Similar Messages

  • Copying a complete Address Book entry into the body of an email?

    Is there a neat way (other than Copy/Paste one chunk at a time!!) to get a complete Address Book entry complete into the body of an email in plain text (NOT as a V-Card), if I want to send to someone who doesn't use an Address Book on their computer ?

    The only way to do what you are asking about is to create an html email. This is possible and assuming you are using Leopard, you can use Mail to do this. Start a new email and select the Stationary button that by default is on the right corner of the new email message window.
    Pages cannot be used to create html code and the only way to use Pages to create your newsletter would be to create a PDF and attach it. The other possible option would be to send your email with a link to a webpage. You could experiment with using the Share to iWeb function and see if this could work for you. (Since I swore off - not to mention at - iWeb some time ago I don't know how well this would work.)

  • Lost all Address Book entries

    All of a sudden I've lost all my Address Book entries. There's nothing there. I use iBackup onto .Mac, but for some reason I can't get it to restore. It keeps saying that backup fails.
    Please help. Big problem.

    You had no backup before upgrading to Snow Leopard, and you didn't make a backup of your Address Book?
    Upgrading OS X is not something that would cause that data to disappear, so that would seem to suggest that something else is at work, such as human error. Regardless, if you're running 10.6.3 as your profile states, you should run Software Update and get 10.6.8, as it fixes a number of issues.
    You can try to recover your Address Book contacts like this:
    1. Quit Address Book if it's running.
    2. Go to Home/Library/Application Support/AddressBook
    3. Move the AddressBook.data file to your Desktop or to the Trash. Then, in that same folder, make a duplicate of the AddressBook.data.previous file and rename one copy simply to AddressBook.data and launch the Address Book application. If you're lucky, your data is there. If not, well that highlights the reason for making backups.

  • Address book entries lost

    I noticed on a parallel topic that no one had answered.
    I just started a new Macbook. I transfered address book via fire wire.
    It tranfered fine. I used it.
    I shut down my computer and then re opened it.
    All address book entries disappeared.
    Also, the book marks which I had transferred disappeared.
    Any one know what is happening?
    Mac book   Mac OS X (10.4.8)  

    From the first computer I made a back up of my address book. My zip drive would not recognize this.
    I transfered it to my new computer on a flash drive.
    Then I told the new computer to use the back up copy of the address book. It worked.

  • Address book entries erased - need help

    Does anyone know how to recover erased Address book entries? I've found that Contact info inside a card can be easily erased/typed over and there does not appear to be an easy way to "undo" as the Edit/Undo command doesnt seem to work in this application. The downside of using Mobile Me is that my devices are getting wiped out quicker than I can copy down the info and save it.

    c9ky6qk3 wrote:
    Thanks for the suggestions VK. Turned out I had some core operating system files that had been corrupted,
    how did you find that out exactly?
    Genius said I had to re-install.
    did you try what I said? i suggest you do that before reinstalling. that's quick and easy and won't hurt anything. if the problem is with your AB database file then reinstalling won't help but what I said will. and since you have time machine you should not reinstall in any case. you should just do a full system restore from TM from before the problem started.

  • Address Book entries have very strange appearance

    Since updating to Leopard, my Address Book entries have a very strange appearance. When I copy and paste them the info is correct, but in the Address Book right-hand window the name (first and last) appears like gobbledigook, as if it was a strange font that is almost like mathematical equations
    With my utmost thanks in advance (as ever) if anyone has the answer to this weird problem
    Kind Regards
    Bernard

    Thanks a million for taking the trouble to respond Ashka.
    I was only reminded of the problem when I opened a web page and saw a similar effect on a couple of lines as I had in my Address Book and having discovered your response, I followed your instructions and on scanning through my fonts, I also turned off "Helvetica Fractions" (as the gobbledigook looked as if it might be fractions). One of these actions seems to have done the trick.
    Whilst looking for a particular font a while back, I ended up downloading absolutely hundreds, but it wasn't until I foolishly installed them all that I realised what a mistake I had made, as Word wouldn't even open, as it couldn't cope with the number of fonts. So I had to keep deleting fonts until Word was happy and even now, I still have far too many fonts. I kid myself that I like having so much to choose from, but truth is I am never going to use 90 per cent of them. Moreover, having discovered this problem, I wonder if there are any others in there that are going to cause me problems in the future?
    Again, can't thank you enough for your trouble
    Best Regards
    Bernard

  • How do i remove my photo from my Address Book entry?

    two questions: first, how do i remove my photo from my entry in Address Book? i should be able to click "Edit", select my photo and hit the Delete key and be done, but no - hitting the Delete key does nothing except make the photo blink.
    second, i just posted a comment on a web page that i've never been to before, on a site that i've never been to before, and my photo appeared on the web page next to my comment. very creepy. anybody know why this is and how i make it stop? does it have something to do with my Address Book entry?
    update: i've consulted Address Book's help and it tells me to select the card then go Card -> Clear custom image, but when i do, that menu item is grayed out.
    further update: i've worked around the problem by taking a screen shot of a blank white area of a webpage and making that my photo...but i shouldn't have to do that and would still like to know how one actually deletes one's photo from Address Book. Address Book's help indicates that i'll find such photos in Library/Images/People, but there's no such directory in any of my Library folders. Address Book's help is not being very helpful today.
    tia...

    there is actually no way to completely delete an image for you address book entry. you can only change it to something else as you did.
    as for the image on that website, most likely it pulled your photo from your webpage on some site like My Space, Facebook etc. do you have a page like that? some sites will tap directly into your webpage and pull your pic from it.

  • How can I delete ALL of my Address Book entries and start fresh?

    Yes. I know that sounds extreme, but……
    I use Outlook on a PC at my office, and I have an sbcglobal/Yahoo mail account. I look upon my office Outlook as my ultimate contacts list (over 1,100 entries) and my calendar.
    I use the sbc supplied free Intellisync software to sync all of my calendar and contacts from my office PC into sbc/Yahoo. That way I actually get e-mail reminders of appointments, etc. in addition to my Outlook notifications. It is actually pretty nifty.
    I have also successfully signed-on to my Yahoo account at home on my MAC and exported all of my contacts from Yahoo (which had been populated by the PC Outlook listings via Intellisync) onto my desktop and then imported them into Address Book. But I did that some time ago and now my Outlook listings have been updated rather substantially. I would like to able to do a complete re-install of the new and improved contacts from the Yahoo repository.
    Again - I certainly do not want to delete the Address Book app itself – I just want to start with a clean slate so there are no conflicts or duplicate entries (which in fact is seemingly a bug in the Yahoo/Intellisync. Is there a way to completely wipe clean all of my Address Book entries?
    Thanks
    Theo
    G4 (FW800) Mirrored doors Mac OS X (10.4.8) Dual 1.42GHz; 1.5GB DDR SDRAM; 20" HD Cinema Display; iSight;

    Hello Allan -
    Your help on a previous post was great re: my wanting to know how to delete the Address Book contents so I can re-import an updated list form my office Outlook, via my yahho/sbcglobal import.
    Well - here is an interesting quandary:
    I have successfully exported my yahoo address book/contacts as a .vcf file Yet - once I have expunged the prior Address Book data and want to now import the NEW Yahoo data to rebuild the database it only takes (enters) the phone numbers and does NOT import ANY of the address information. I am positive I did this once since our original exchange and everything transferred just fine, but now….?!
    What I cannot determine is where the fault may be: does the export NOT include the addresses (in which case I am doing something fundamentally stupid wit the export) or the vcf cards are complete, but Address Book is not “seeing” anything other than the phone #s and e-mail addresses.
    Any thoughts?
    Dazed and confused
    Theo

  • My original computer hard drive crashed. I have a new laptop, but I lost all my address book entries. Is there a way I can transfer my contacts on my ipad to my non-apple laptop? Tom B

    My original computer hard drive crashed. I have a new laptop, but I lost all my address book entries. Is there a way I can transfer my contacts on my ipad to my non-apple laptop? Tom B

    If you have a Mac, it's pretty easy. But you don't (should I make a pitch for you to get a MacBook Pro in the future)?
    This should help you out to sync it back to several non-Apple software:
    http://support.apple.com/kb/HT1296

  • Reply works, but address book entry doesn't

    I have an odd problem that's making me a litttle batty. I have an friend I e-mail regularly and--since recently switching to Mail from Eudora--I've been finding that some of my messages are not getting through.
    I'm not 100% certain, but it seems that when I send a new message that's addressed from the Address Book entry, the message is never received. But when I REPLY to a message from this same recipient--same address--the message goes through just fine.
    I've reviewed the address again and again and it's entered correctly.
    When I look at the Long Header, one difference I note between the received and no-received maessages is under Content-Type.
    A successful message has:
    Content-Type: multipart/alternative; boundary=Apple-Mail-8-603300258
    And a failed message:
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    Another difference is that the failed messages--the ones that originated with me have something called:
    Content-Transfer-Encoding: 7bit
    While the messages I reply to don't have that line at all.
    The recipient--by the way--is at work at a large organization. So I wonder if their mail servers are blocking messages with certain kinds of encoding?
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    OK, OK...this just in. While I was composing this message, I was also franticly corresponding with the adressee in question, trying to troubleshoot this. I may have solved my own problem, but I'm going to post this anyway... In hopes of solving someone else's problem, and possibly getting some responses that will enlighten me further (cuz I just don't get this).
    On a wild guess/hunch, I went into PREFERENCES/COMPOSING and changed the Message Format: from Rich Text to Plain Text. The next test message got through! One difference (if it matters??) I found in the Long Header was the
    Content-Type changed from:
    text/plain; charset=US-ASCII; format=flowed
    to
    text/plain; charset=US-ASCII; delsp=yes; format=flowed
    So anyway...I'm completely flummoxed. Any ideas, clues, answers out there? I'm not going to trust yet that this problem is completely solved. So I'll leave this as an open question for now.
    verbosely yours,
    Roger
    Mac G5   Mac OS X (10.4.5)  

    Hmmm... there's nothing fancy about the signature (no bolds, itals or other styles or colors). But does that mean that it IS plain text? My setting when I made the signature(s) was Rich Text, I'm sure. So would that apply, even though it's plain for all intents and purposes? And if it's not. How is it changed to Plain Text?
    As far as the SMTP settings. I tried one change last night. I changed the Server settings from "smtp.ispname.net:username" to "smtp.ispname.net:[email protected]". When I tested a message to the address/server I've had the most problems with, the message arrived successfully. But I don't think that proves anything as yet. The nature of the problem has been mysteriously intermitent anyway. (that message had my regular signature as well).
    AS I'd mentioned, I've been moving stuff out of my Sent Mail folders to keep things organized and for reference (Is doing that OK? is Sent Mail suppposed to be left wher it is for some reason?). But on informal investigation, I would say that all of the messages I've sent--original or reply--HAVE shown up in the Sent Mail folder.
    The discussion thread I'd been involved in with you before is:
    http://discussions.apple.com/thread.jspa?threadID=347863
    However, I haven't added any posts since way back then.
    Thanks you for any insights you can give me with this. If you're not on Apple's payroll, you should be.
    Roger

  • Multiple Address Book Entries

    Hi
    When I add a new contact into my address book on my MacBook Pro iCloud adds 20 - 30 copies of it onto the Contacts app on my iPhone!
    Can anyone help me diagnose the problem please?
    Thanks
    David

    Marc Charbonneau wrote:
    > Our CIO wants a few address book entries that if chosen, will all
    > send to the same account.
    >
    > Seems easy enough but I haven't found a way, without creating a new
    > account that has some Forward or Delegate rule.
    >
    > Is there a nicer way to do it without having another real GW account
    > created and using Rules?
    >
    > I was kind of hoping to just create an External User that simply
    > points to the one account but it complains that that e-mail address
    > already exists.
    Why not using nick names ? The only downside is gw7 and earlier
    nicknames don't show up in the address book. GW8 does show the
    nicknames in the address book.
    Cheers,
    Edward

  • Multiple Address Book Entries that all send to the same GW account ?

    Our CIO wants a few address book entries that if chosen, will all send to
    the same account.
    Seems easy enough but I haven't found a way, without creating a new account
    that has some Forward or Delegate rule.
    Is there a nicer way to do it without having another real GW account created
    and using Rules?
    I was kind of hoping to just create an External User that simply points to
    the one account but it complains that that e-mail address already exists.
    Thanks
    Marc

    Marc Charbonneau wrote:
    > Our CIO wants a few address book entries that if chosen, will all
    > send to the same account.
    >
    > Seems easy enough but I haven't found a way, without creating a new
    > account that has some Forward or Delegate rule.
    >
    > Is there a nicer way to do it without having another real GW account
    > created and using Rules?
    >
    > I was kind of hoping to just create an External User that simply
    > points to the one account but it complains that that e-mail address
    > already exists.
    Why not using nick names ? The only downside is gw7 and earlier
    nicknames don't show up in the address book. GW8 does show the
    nicknames in the address book.
    Cheers,
    Edward

  • CUCM 8.6 Personal Address Book entry limitation?

    Hi Experts,
    Can one of you tell me what is the limitation of Personal Address Book entries?
    Done a quick search
    https://supportforums.cisco.com/thread/2153123
    according to this on 8.5 is 1000.
    - Is this still the case on 8.6,
    - is it per phone or this is the system limitation (per ?server?) ? if having two CUCMs, will this be 2x 1000 (if 1000 is still the case for 8.6)?
    Thanks in advance!
    Kind regards,
    Tibor

    Nelson:
    The URL that is working for us is: 
    http://10.2.5.234:8080/ccmpd/pdCheckLogin.do?name=#DEVICENAME#&service=pab
    then use your own IP address for the Call Manager node.
    Our Call Manager configuration is shown below.
    To access the feature, we hit the Services Button, are prompted with a Personal Address Book option, select it, then are promoted for a UserID/PIN (shown further below), at which point I enter my LDAP ID and a PIN.  The PIN is created in Call Manager under User Management ==> End User ==> PIN.
    Good luck with your process.
    Dan

  • PLEASE HELP!!!!  My Address Book Entries Keep Disappearing

    I work on contract for multiple companies and have 6 different email accounts. Until today, I only had 1 profile in my address book that was marked with my main email address. Today I went to add my name and the corresponding email into Address book, and then my email and ical froze and I had to Force Quit. All Address book entries were gone. I reloaded my address book, went back to ical to view the invitation and AGAIN!!! all address book entries were gone. It appears that I can't set up "my info" with different email addresses. I would be ever so grateful if someone might have a solution.
    Many Thanks for any ideas....
    ibook G4   Mac OS X (10.4.8)  

    I recommend that you book a Genius session at an Apple Store. It sounds like your iMac or iPhone has a corrupted Contacts function and it will keep generating blank contacts.
    If you can open Contacts on the iMac then create a new group (file menu), drag your genuine contacts to that group then File/Export the group with Export vCard. You can use this to recover the contacts later.
    BTW - best not to post your iMac serial number and UUID online.

  • Duplicate Contact/Address Book entries on iPhone

    why do I have duplicate contact and address books entries on my iPhone? I never had this problem until I upgraded to iCloud. I have an iPhone 4 and it is upgraded to the current OS.

    If you are using Outlook 2011, make sure you have the latest service pack and update.
    Make sure your Mac Book and all devices have the latest update.
    If the Calendar on the Mac Book is correct go to step 3
    Assuming Mac Book Calendar is correct, remove accounts from iPhone, iPad.
    Reconnect account to iPhone, iPad account.
    All calendars should now be in sync.
    There are times when the Mail, Calendar, Contact application has been corrupted (Outlook 2011, Mac Mail, Entourage, etc).  This will cause all kinda of issues on your devices.  You have to repair the mail client first.  In the case of Outlook you can delete the profile and recreate it.  In Mac Mail you can rebuild (from Tools on the menu bar)

Maybe you are looking for

  • Configure New TM on a New Macbook pro with retina display Issue

    I have bought a new New Macbook pro with retina display laptop (Lion moutain OS)and a new TM (2TB). I have an internet router with wireless connect. I plugged TM to the router with an ethernet cable. Connect my TM to my macbook with an ethernet cable

  • I need to downgrade firefox3.6.23 to the last version available for imac ppc with Mac OSX Tiger 10.4.11, what is the firefox version number?

    I have installed a firefox update that is only compatible with imac' s with an intel processor & I have a ppc imac. Here is my imac info: Machine Name: iMac Machine Model: PowerMac4,2 CPU Type: PowerPC G4 (2.1) Number Of CPUs: 1 CPU Speed: 800 MHz L2

  • DataSocket PSP Data Buffering

    I have a VI that writes to a network shared variable using DataSocket.  The DataSocket URL uses PSP.  I have another VI that reads the network shared variable also using DataSocket.  I am experimenting with data buffering to see when data is lost if

  • Non-Leading Ledger and SPL

    Hi, <u>Question 1:</u> Can anyone verify that posting to non-leading ledger do not update SPL? <u>Question 2:</u> If this is the case, does anyone know if this is going to change in the near future? Thanking you in advance, Pavlos

  • How to print a form after vf01

    hi i want to print a  zform after vfo1 i have got the user exit RV60AFZZ which gets triggered while saving how can i pass the form name in the exit to so that it gets triggered ? regards darshan