Mass-change address format in address book

Hi Guys,
I've recently changed from pc to mac (yay) and have imported all my contacts into address book.
I have several hundred contacts that have mailing address in the US, and several hundred that have mailing addresses in the Netherlands and some in other parts of the world.
I'd like to change the address formats to the appropriate ones, but so far have only been figure out how to do that one at a time, or all together.
I can use smart groups to group the addresses I want to change together, but after that I'm stuck.
Is there a way to change the address format from selected cards? or will I have to do this one at a time?
Thanks for your help.
mac mini Mac OS X (10.4.8)
mac mini Mac OS X (10.4.8)

Here is an Applescript you can run that will do what you want:
property CountryCode : {missing value:"us", USA:"us", Netherlands:"nl", UK:"uk"}
tell application "Address Book"
repeat with aPerson in people
set theAddresses to addresses of aPerson
if theAddresses is not {} then
repeat with anAddress in theAddresses
set theCountry to country of anAddress
set the country code of anAddress to my getCC(theCountry)
end repeat
end if
end repeat
end tell
on getCC(aCountry)
set s to "on run {CountryCode}" & return
set s to s & "get " & aCountry & " of CountryCode" & return
set s to s & "end"
try
run script s with parameters {CountryCode}
on error
return text returned of (display dialog aCountry & " not found. Enter a country code:" default answer "us" buttons {"Ok"})
end try
end getCC
In the property statement, change the "us" for missing value to your default country code. Add any other countries you have to the CountryCode list. The first part, before the colon, is the Name of the country as found in your address book. The second part is the ISO country code (two characters). I found a list of ISO country codes here. That list was upper case, but the address book uses lower. If you have variants of the same country name, you can just add them all to the list.
Note: the name of the country cannot be more than one word--I didn't want to work out another way of getting codes. However, if the script runs across a country name that is not in the list, it will ask you to enter the correct value. You can change the "us" in the getCC handler to the country code of multi-name countries in your address book to make it the default answer.
Need help with Applescript? Just copy the code into a new Script Editor document and hit the Run (green right arrow) button. It will open the Address Book and start looking through your contacts, finding ones with addresses, and setting the country code to what you say it should be in the property CountryCode list.
If it fails with any other errors, check the Event Log History window which may give you a clue as to what was wrong with the address it failed on. You may be able to fix the address so it continues. Otherwise, post back with the error and I may be able to figure it out.

Similar Messages

  • Change the format of addresses and phone numbers in iphone

    Plz help me out, Im not able format my contacts. I do not want any hyfans in the contact number, I tried with i cloud but it's just waste of time, there is an article in Apple community which I followed but no use, how to delete those bloody hyfans in contacts of my iphone5c on iOS 8.0.2.

    You can send Apple feedback here: http://www.apple.com/feedback/
    "buy android software" make no sense, but if you wish to buy an Android based phone, that is certainly your prerogative. But no one here cares.

  • Using GREP for Address Formatting Varying Addresses

    I create pre-addressed wedding envelopes for my clients. They provide me with a list of their addresses in a word document, and I lay them out in InDesign with each page being one envelope. (So I can export as a pdf and print all 100 or so envelopes in one swipe.)
    The problem is, I'm getting more and more requests for more dynamic addresses. For example, lets say they want something like this:
    Mr. & Mrs. Smith
    1 3 4 5   M A I N   S T R E E T
    NEW YORK, NEW YORK
    87996
    Solution 1: Use Line Styles
    For example:
    Line 1: Style A
    Line 2: S T Y L E  B
    Line 3: STYLE C
    Line 4: Style D
    This would typically work, except sometimes the addresses have 4 lines instead of 3, making some addresses look like this:
    Mr. & Mrs. Smith
    1 3 4 5   M A I N   S T R E E T
    APARTMENT - 7B
    New York, New York
    87996*
    *hint: It thinks this is line 1 again.
    Instead of the desired result:
    Mr. & Mrs. Smith
    1 3 4 5   M A I N   S T R E E T
    A P A R T M E N T  - 7 B
    NEW YORK, NEW YORK
    87996
    Also, it would require replacing every return with a forced line break (attainable, but still.)
    Solution 2: Use Nesting Styles
    This *might* work, but I can't tell it to stop the nesting style with a line break/return, only with specific characters (which I would have to insert line by line and negate the whole point.
    Solution 3: Use GREP
    This is a foreign language from another planet and I CANNOT figure it out. I can set character styles no problem, but telling ID in GREP when to apply them is a mystery to me. HELP!
    BobLevine EugeneTyson @P_Spier << you guys are my heroes!  InDesign

    I don't think that's what he means. The Yahoo push mail uses Yahoo's IMAP which only works if you set up your account on iPhone using the preset Yahoo account setup. This setup does not allow for changing the FROM address, so the email appears to be from the underlying yahoo.com account. If you pay for Yahoo Plus you can use POP and change the FROM address, but then you don't get the benefit of the push email.
    I'd love to hear a solution, but after calling Apple and Yahoo and combing the support boards of both, I don't think its possible at this time.

  • Change photobook format iPhoto from 21x28 to ExtraLarge

    While working on a PhotoBook in iPhoto I noticed I forgot to change the format before starting to put pictures in.
    Is it possible to change the format (21x28 now) to ExtraLarge keeping the pictures in the book at the same time?
    I mean, i got a lot of pages done already and I don't want to do all the work again. Hope I made myself clear..
    I pretty much want to know if I can change the format of a book that is "complete and full of pictures."
    Thanks for the help!!

    And from CMYK to RGB?
    As Larry has already pointed out you can't change the color profile with iPhoto.
    However, there's an Automator workflow/app that can convert a TIFF image file to a JPG file and embed the sRGB color profile at the same time. I've created one with Automator, Convert to JPG and Embed sRGB profile, that can be downloaded from Toad's Cellar. 
    To use it export the photos out of iPhoto as Kind = Original and drop them on the application. This will avoid applying jpeg compression to the file twice, once when exporting as a jpeg and again when converting with the application.
    OT

  • Address Book - Changing the address format?

    A couple of years ago I imported all my old contacts into address book. I've now discovered that I had the address format set to USA in preferences and I'm a UK user. I've since changed the preference to UK but it this only affects new addresses that I add.
    Is there a way to change those old addresses to UK format? I've tried exporting a V card and re-importing but it doesn't change.
    TIA, Steve

    Hi Steve, and a warm welcome to the forums!
    I'd take a look at Barney-15E's Script here for converting to gb/uk...
    http://discussions.apple.com/thread.jspa?threadID=764832

  • Adding a country to the Change Address Format menu

    I have someone who I wish to write to in Turkmenistan, so I'm using Address Book to create a label for him. However, Turkmenistan (like many other countries) is not listed on the menu of countries you can change the Address Format to on the Edit/Change Address Format submenu, when you click on the address type (home, work, etc).
    Is there a way to add countries, or perhaps to specify Other/Not Listed and just use a single blank field to type in the address? When I try and enter a Turkmenistan address according to the USA label format, it looks misaligned and has a gap between the second to last and last lines of the address.
    I've searched the forums and all the documentation already, but I can find nothing on this. Please help if you can!

    This is what I was doing initially, but for some strange reason, when I paste the Cyrillic in from another document (as I cannot type it myself), the second line of the address gets shifted all the way to the left, outside of the actual editing field. I can't edit it or make it align properly at all, and it looks that way even on the saved Card. I think on the label, it looks fine, but I can't delete the City, State fields, so there's a gap between the major bulk of the address and the country.
    It would be nice if there were a way to say what fields you want on a card- for example, drag and drop Street, or Address Line 1, Address Line 2, and delete fields you don't want- like State/Province. (This would negate the need of needing to pick a country's particular format, because you could rearrange it as you pleased, or as was proper for wherever you were writing). I'm just wondering if there's some way to do something to help me-- maybe change something in one of the plist files, or AppleScript? (Though I'd rather an easier solution, if I can get it done, that would be great.)

  • Problem changing address format

    I live in Japan, and therefore have lots of Japanese addresses. When I imported these addresses into Address book, it automatically put them in 'Japan' address format (although I have UK format specified in the preferences). Japan format is more or less the opposite of UK or USA format, with post code and city first, and street address last.
    However, Japan format is only used if the address is in Japanese script. Otherwise the addresses are written in UK format. Therefore, I set about changing the formats. However, when I change the format, Address Book automatically puts the words 'United Kingdom' in the country field. I then have to change it to 'Japan'. As I have about a thousand addresses, this is pretty infuriating.
    Is there anyway to change this behaviour, so that the country is not automatically inserted?

    Unfortunately you may have to clear out the country field before changing the format.

  • My apple id is not working on icloud because it is not in email address format.   how can i change my apple id to email format so icloud can work?

    Hello - I just purchased an iPhone 4s and would like to use iCloud but my apple id is not in email address format so when i try to sign into iCloud it won't let me use my apple id.  i tried to change my apple id through my account settings but could not find a way to do that.  i found ways to change everything else in my settings but when i pushed on the edit button to change my apple id the page didn't change.  Not sure how i can get to use iCloud?  Please help.

    You change the name of your ID at https://appleid.apple.com.  See http://support.apple.com/kb/HE40.

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • Recent changes (v 31) have made a mess of the address box and addressing; address book entries are incorrectly entered and lists don't work.

    Not really a question. I've gone back to an earlier version of T-Bird because the address block format and addressing function in V31 is a total mess. When calling addresses from the address book, they are incorrectly entered. Lists simply don't work at all. V24 was pretty good so I've turned off auto updates.

    Thanks Bob for that very fast reply!
    But neither "Modifying hal configuration" nor "Using the Desktop Environment settings" (xfce) worked. So I tried the "I don't want this crap, how do I turn it off?" solution and well it works
    Maybe I turn it back on in a month or so.. but for now i'm fine with no hot plugging but a working keyboard...
    Thanks and Bye!
    smax
    Last edited by smaxer (2008-12-09 17:42:43)

  • Why does Lion KEEP reversing changes you make in address book and other applications without your consent and without wanting it to??? Plus address book will NOT import old address book contacts from Snow Lepoard 10.6 and keep them.  This Lion OXS 7 is ..

    Why does Lion KEEP reversing changes you make in address book and other applications without your consent and without wanting it to??? Plus address book will NOT import old address book contacts from Snow Lepoard 10.6 and keep them.  This Lion OXS 7 is .. becoming very frustrating ... it will NOT keep changes made in the Address Book and it has destroyed my contacts which I only have electronically since 10.4 in my address book. I am NOT happy with this OS7 it has a lot of issues and faults.  How can one stop automatic reversing of data when inputting???
    Please help! 
    Wished I NEVER upgraded to this Lion!!!
    Carmelo

    Relax. Your address book database is corrupted.
    If you are syncing your Contacts with MobileMe or something else, disable it for now.
    Backup your address book by going to File>Export>Address Book Archive.
    Quit Address Book.
    Open your Library by holding down the Option (alt) key while selecting the Go menu in Finder. Select Library. Navigate into your Application Support/AddressBook folder and delete the addressbook-v22.abcddb file.
    Open Address Book. It will recreate the database from the raw data.
    See how that works. If it is ok, then reenable syncing and see how that works.

  • Change Customer Address format with specific customer group

    Dear all,
    May I ask is it possible to change customer address fomat for a specified customer group or Company code only.
    Normally, the format is Street, City and Country. for a special cusomer group, i wan to change the format to street , street 2, street 3 and street 4.
    Is it possible to change the format without affect other cusomer group and also not affect Vendor address format?
    I have seached in the format, some discussions provides method to change address format by country. But no discussion mention about change cusomer specified customer group only.
    Can anyone advise?
    Many thanks
    Sunny

    Hi,
    Did you try for
    1.By changing field status in it account groups through transaction code OBD2.
    2. In transaction code OB21 for company code.
    Regards,
    Tejas

  • Change address format

    Hi,
    I need to change the format address on the top-left frame. The current format of the address is City, Street and house number.
    How can I change the format to display house number, street and city?
    Can that be achieve in the configuration?
    Cheers,
    Shan

    hi,
    You can definately change positioning of field by configuration.
    Click on address field
    Press F2. Check Component, view and Configuration found fields (Role conifg key, Component usage, Object type, Object subtype)
    Eg:
    Component: BP_ADDR
    View: StandardAddress
    Role key (Found): <Default>
    Component Usage (Found): <Default>
    Obj type (Found): <Default>
    Subobj type (Found): <Default>
    Open tx bsp_wd_cmpwb
    open component BP_ADDR, view standardaddress
    Click on configuration tab
    Click on Seleat configuration
    Select <default> <default> <default> <default> conifguration
    Click on edit button
    Change positioning of field as required
    Save your configuration
    You pbm will be solved
    Best regards
    Pankaj Kumar

  • Address Format Help Needed

    Could someone please direct me to some information explaining how Apple deals with Address Formats?
    I upgraded to Snow Leopard, then synced. I was syncing from what a perfect version which I had saved on Mobileme before upgrading, and I had not changed anything on the computer after upgrading. I expected it to be straightforward. However, I was told that I had 730 conflicts in Address Book. (That's half my records). When I started to go through these conflicts, I found that they all had something to do with Address Formats. One version, for example, had format 'Japan', and was formatted one way, and another version, had format 'ja', and was formatted another way. Also, sometimes I had 'United Kingdom', and sometimes 'uk'. Actually, there were all sorts of strange conflicts, which is why I'd appreciate some general information that I can study.

    Using 'Reset Sync Data', I uploaded a perfect version of my contacts from an ibook running 10.4.11. It was when I tried to download this onto another, new, computer using 10.6 (again using 'Reset Sync Data' that all these conflicts came up. There was nothing on the latter machine for there to be a conflict with.
    Thanks for your advice, but if I always choose the side with the full name, then I will be sometimes choosing a side that has an incorrectly written address. And I'm afraid I don't want to have to spend a morning doing this 730 times, as very often I also need to check the address from the original computer.
    What I'd like to know is if there is a way to do this without these conflicts. I suppose I could just copy/paste the address data, but then next time I sync, will I get the conflicts again? Why is this happening? What are these two letter codes?

  • How can I change the e-mail address that shows when I try to order from iBooks?

    Hi.  I recently had to change my e-mail address, and successfully changed my Apple ID to reflect the new e-mail.  However, while trying to order a book through iBooks today, I noticed that I was asked for my password and that my old e-mail was showing.  How can I change the old address to the new one so that I can order from iBooks?  Thank you.
    janiekhi

    Hi, fromsouth, and thank you for your reply.  When I go to store, there is no place that says "sign out" so I can't do this.  My old email is showing, and when I click on it I am asked for my password.  I tried my old password that I used with that email, but was told it was incorrect.  This is so frustrating!  I can't do any ordering on my iPad until this problem is solved.  Thanks again.
    janiekhi

Maybe you are looking for

  • How do I play a video in full-screen mode on one screen of a dual-screen Windows 7 system without blanking out the other screen?

    How do I play a video in full-screen mode on one screen of a dual-screen Windows 7 system without blanking out the other screen?  Not losing the other screen would be useful as I would like to, for example, monitor my emails whilst watching a video o

  • No BOM explosion in Sales order item if another item exist

    Hi Experts, I have the following problem: If I have one item in sales order, it explodes multilevel and everything is OK. If I have 2 items in sales order, the first one(item 10) has to explode and the second item (item=20)has as higher-level item th

  • Thumbnails Not Syncing

    I'm using PC Suite 6.81.13.0 and my phone is a Nokia 7370. If I go into my contacts within PC Suite, edit a contact, click "Add Thumbnail" button, locate a JPEG file on my computer, then the thumbnail shows up fine within PC Suite. I then click the "

  • Apple Mail Archiving in Mavericks

    Just updated to Mavericks. My 'Achive' mbox disappeared. Now, when selecting archive from drop down box in an email, the message disappears. Where did it go? How can I restore my Arhived messages from before I updated to Mavericks? Thanks.

  • Mail server on microsofts blocklist (again)

    Why is Microsoft putting my server every once in a while on their blocklist. Why wont the give a clear reason why it's been put their. Why is it so goddamn difficult to remove the block. and most important i've signed up for that ridiculous sender /