Removing the country code prefix from all contacts in the Address Book

upgrading my iphone (to os 3.0) added country codes to all of my contacts,
not noticing this i synced it with my mac, thus adding said preixes to the contacts on my mac as well.
is there a way (only applescript from what i understand) to remove the country code from all my contacts?
thanks!

paste the following into Script Editor
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "Address Book"
set mlist to selection
repeat with per in mlist
set NP to number of phones of per
repeat with i from 1 to NP
set curphone to value of (phone i of per) as text
if text 1 thru 4 of curphone is "+972" then
set value of phone i of per to "0" & text 5 thru -1 of curphone
end if
end repeat
end repeat
save
end tell</pre>
select all the contacts you want to be affected in Address Book (you can select them all) and press "run" in script editor.

Similar Messages

  • How can I copy all the info from a contact card in address book to paste into a documnent?

    How can I copy all the info from a contact card in address book to paste into a documnent?

    Tom Wolsky wrote:
    The advantage goes to FCP7 if you allow that it can copy and paste filters, audio and video, transformations, and other attributes separately.
    You can do that in FCPX too, as all the things you cited are listed separately in the inspector.
    Here's a little gotcha. Let's say you've color corrected a few clips and you've applied an effect to one and want to paste it the other clips. You switch off color correction and copy the clip. You select the other clips and paste effects. What do you think happens? The effect is applied, but the color correction is applied as well, only it's switched off as it was in the first clip, so all the color correction on the other clips is lost. Fun, eh?
    I'll try to replicate your gotcha - but no, that doesn't sound like fun at all!

  • HT2486 How do I print the notes from a contact in my address book?

    Here is the whole question.   I am still adjusting to life without my Palm desktop app
    How do I print the notes from a contact in my address book?  I used to do this all the time with my Palm desktop app and would like to be able to do this, as I use the notes field for lots of important info.  thanks.

    Print > Attribues > checkmark notes?

  • I created an envelope template and want to print envelopes inserting addresses from a contact group in address book

    I created an envelope template in Pages and want to print envelopes inserting addresses from a contact group in address book. How do I do that?

    On what word processor will that be?

  • How do I disable or delete the country code prefix

    I'm in Mexico and want to call another Mexican city ant skype keeps adding 52 before my number. Apparently it thinks I'm in the States and will need this code. How on earth do I just type in a phone number without a code? I don't need a country code to make this call. Actually this new "feature" of automatically adding a country code prevents me from using Skype. Help anyone? Thanks!

    Hi and welcome to the Skype Community,
    You always need to start phone numbers with the country code when calling from Skype. Take a look at the instructions for calling landline or mobile phones: https://support.skype.com/en/faq/FA20/how-do-i-call-mobiles-and-landlines-in-skype-for-windows-deskt...
    Best to save phone numbers in you Skype contacts starting with the country code. If you are calling numbers via the dialpad you can change the default country via the dropdown next to the number field.
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Do not want ALL Contacts in my Address Book on my iPhone

    I have a lot of business contacts in my address book on my Mac that I do not want on my iPhone.  Is there a way to select specific groups to snyc from iCloud?  Or is it all or nothing?
    Thanks
    Bonnie

    Depending on how your Address Book is organised it may be relatively simple or not, but basically you need to drag the contacts you want to move to On My Mac to your desktop, delete them from Address Book and add them back (double click on the file on your desktop) once you have selected All On My Mac from the groups list.
    If you don't have an All On My Mac group, you'll need to go to preferences > general and make set your default account to On My Mac.
    You can drag more than one contact at a time so if you have them in groups already it will help, if not you can work through the list of contacts using cmd click to select just the one's you want.
    You can turn off the sync with Google and Yahoo from preferences > accounts > On My Mac.
    Summary:
    Select all the contacts you want to move
    Drag them to the desktop
    Delete from Address Book
    Set default account to On My Mac
    Select All On My Mac from groups
    Double click the file on your desktop

  • HT2486 can I print out the contact info for all contacts in my address book?

    I haven't found anything on support to determine if I can just take a group with 10 contacts from my address book and print it out like a CSV file or just a plank page.
    Any suggestions if this can be done?
    Thanks in advance,
    Clay Anderson

    To print out a group, select the group name of the contacts or select them holding down the Command key and clicking on each name.  Then Addressbook > File > Print > click the Show details button > select the items below in the dialog box > select the fields to print > print or print to PDF.
    Regards,
    Captfred

  • Is it possible to change the country code of an external keyboard on the ipad?

    i have bought an aluminium case with an external keyboard for my ipad. it is a nice tool, and i would like to present it to a friend as well. but this friend lives in aother country with an other keyboard.
    When I change the display keyboard country, does it effect the external keyboard as well, so he could use it correctly?
    thanks!

    The selection of a different display keyboard does change the way the external keyboard works.  There is a settings for software keyboard layouts and hardware keyboard layouts.  How well it works, I don't know because I'm not familiar with any foreign keyboards.  If you are familiar with a keyboard from your friend's country, perhaps you should add his country's keyboard to your setup and give it a try.

  • Unknown Caller ID from a Contact in my Address Book

    Hello. My girlfriend has an iPhone 4 on AT&T and I have a Verizon iPhone 5. When she calls her Caller ID information appears but when she leaves a voicemail is it listed as Unknown Caller. I have been having this problem since I had the iphone 4. i tried Network Reset and deleting her information and adding it in.  Has anyone else experience this issue and if so, how can it be resolved. Many Thanks.

    Comtact your carrier and/or have her contact hers. This is not a phone problem, it's a carrier problem.

  • How do I add the country code to all contacts when it did not previously appear?

    I just moved from the US to the UK and purchased a new iPhone 4S.  When my contacts migrated from Outlook to the iPhone they did not include the country code in the US and therefore all contacts numbers are now listed incorrectly.  How can I add the country code to hundreds of contacts painlessly?
    Thanks in advance.

    International Assist is activated.  Upon further review this appears to be a case of the original country codes not being added when the contact list was constructed.  iOS has not figured this out and thus when changing countries I've been forced to add the country codes to every contact record manually.  Disappointing and very labour intensive.  If only Apple allowed for a macro that simplified the mass change.

  • I recently moved from the US to Sweden and all my contacts are saved with their international country code prefixes. I keep getting text message errors when I send a text, but the contact info is stored correctly for each. How can I fix this?

    I receive an error message that adds the country code again. I tried it with no country code and the area code included but I still receive an error message. It only does it sometimes and not to all Sweden contacts. There is no obvious reason why it does it to some but not others. Does any know what the problem is and how to fix it? Thank you!

    Only other thing I can suggest is to reset your phone. This won't touch any data or settings:
    Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.

  • How can I call contacts from my list without the country code that is registered with that contact?

    I have all my contacts registered with a country code. When I want to make calls from my iphone, I do not want the phone to dial the country code, but only the area code. How can I make that happen?

    Your 3G backup contains your contacts already, you don't need to sync them to Outlook or anything just restore the backup file from the 3G onto the 4S and you should be good to go.
    This kb article should help:
    http://support.apple.com/kb/ht1414

  • Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out throu

    Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out through the settings feature or anything else....HELP please as it is annoying to see all of these contacts!

    Hello ymprice91277, let's solve this mystery! To unlink the Facebook contacts go to Settings, Facebook, turn off contacts.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • On my iphone how do I delete from my exchange contacts, so I only have all my contacts under ALL CONTACTS on the device.

    On my iphone how do I delete from my exchange contacts that were imported from a different email address, this way I only have all my contacts under ALL CONTACTS on the device.

    Contacts imported from a different email address? Are you referring to a different address book, possibly from your computer? Exchange contacts are not stored on your computer. If you turn off Exchange contacts they will disappear from the phone. The phone will always show contacts that are stored on your phone, and keep them separate from the Exchange contacts like they are now. If you delete the ones on the phone and then turn off or lose access to the Exchange account, you will no longer have any contacts.

  • Not able to create a customer master record with US as the country code

    Hey All,
    I am not able to create customer master data in the Transaction Code XD01/FD01 with the country code as US.
    The error message for the same is *NO JURISDICTION CODE* COULD BE DETERMINED. I have checked the tax code settings but could not locate the problem.
    I have checked the field in the account group(OBD2) but tax code is in  optional status
    and also checked the country settings for US in the transaction code OY17 still the same error message,
    but when I tried checking the settings for a different company code's customer data base (us in county code)
    I can see that there is a number mentioned in the address tab under tax jurisdiction field (beside time zone) which is not populating for this company code.
    So, do anyone know where exactly we mention this number so that it populates in that field of address.
    Hope am clear.
    hope to receive a solution
    thanks & regards
    vinila

    Hi,
    You need to maintain the JURISDICTION CODE for country US. This  JURISDICTION CODE code mainatanance purely FI/CO part.. it depends on the country's tax procedures.. Better take the help from your FI/CO consultant..
    Menu path for Defining tax jurisdiction code
    IMG -- Financial accounting -- Financial accounting global settings -- tax on sales and purchases -- basic settings -- define tax jurisdiction
    reward if helps
    Muthu
    Edited by: Muthupandiyan on Mar 14, 2008 11:09 AM

Maybe you are looking for

  • Creating active directory users with dscl

    Our mac workstations (OSX 10.8) are bound to a 2008 Active Directory server.  We are attempting to use some existing dscl scripts on the mac client computer to create Active directory users.  We can successfully read and change AD attributes of an ex

  • Les2bee, acrobat X1 not opening up!

    Hi, I wonder if anyone can help me please, I can't get Acrobat X1 to open up, I'm using windows 7 ultimate 64bit nor will Distiller I'm using it as part of the Web-Design CS6 Premium suite, It just doesn't want to play nice, rest of the programs are

  • What is an ipad MC497LL/A?

    What is an ipad MC497LL/A?

  • Firewall won't let iTunes connect to Airport Express

    I'm trying to get iTunes to recognize my remote speakers. If I disable the firewall, it works. I've tried various combinations of UDP and TCP ports though none works. Any ideas? I've tried UDP port 5353 and TCP ports 192 and 5009 to no avail.

  • What new features in Lightroom 6 ?

    With Adobe Photoshop Lightoom 6 expected to be released later this year, what new featured would you like to see in the new version ?.