Set phoneProperties to properties of phones of person i repeat with j from 1 to ( count of phoneProperties ) Repeat with i from 1 to ( count every person ) Find and replace phone numbers tell application "Address Book" Included below are a few more example scripts. When you have created the script you want to use, just press the Run button to run the script and make the changes. You will have to create your own AppleScript to fit your exact needs, but the general structure of it will be similar to the above example. The next line sets the street of the first address of thePerson to “123 New Street.” Then the fifth line says we are finished going through the list peopleToChange, the sixth line saves the changes, and the last line says we are finished telling Address Book to do something. The third line says that we are going to go through the list peopleToChange one item at a time, and we will refer to each item in the list as thePerson. The second line finds all the people in your address book whose street of their first address (people can have more than one address) contains “321 Old Street.” It then stores a list of all these people under the name peopleToChange. The first line says that we are about to tell Address Book to do something. Here’s a walk through what the above script does. One of the great things about AppleScript is that it is designed to be readable by someone who knows nothing about AppleScript. Repeat with thePerson in peopleToChange set ( street of first address ) of thePerson to "123 New Street" Set peopleToChange to people whose ( street of first address ) contains "321 Old Street" If the AppleScript has been entered correctly, you should receive no errors. This is called Script Editor and is located in Applications/AppleScript if you are using Leopard or earlier.Ĭopy and paste the following lines into the AppleScript Editor window, and click the Compile button. Start by opening up AppleScript Editor (located in Applications/Utilities). This second method is actually more flexible, but it does require that you get familiar enough with AppleScript to create your own script or modify one of my examples to suit your needs. ![]() If you want, you can click “Review Duplicates.” to check that the changes are correct, or you can just click Import. You will be warned that the contacts are duplicates and will be updated. vcf file to import the contacts back into Address Book. Check the file to make sure it looks correct, and then save it.įinally, go to the Desktop and double-click on the. Now just click the “Replace All” button and every instance of the old information should be replaced with the new information. ![]() Press the Next button a few times to check that it is entered correctly, then enter the new information in the “Replace with” field. For example, addresses have semicolons to separate lines like item2.ADR type=HOME type=pref: 8 High Street Earls Court London SW5 9EK UK You might have to look in the file to see how this is formatted. In the “Find” text field, enter the old information, such as the old address or phone number. Now we are going to use TextEdit’s Find and Replace feature to find the existing information and replace it with the new information.Ĭhoose “Find.” from the Edit menu or press Command-F. vcf file onto the TextEdit icon in the Dock. Either open TextEdit and choose “Open.” from the File menu, or just drag the. vcf file that contains contact information for everyone in the group. Once this is done, drag the group from Address Book onto the Desktop to create a single. Add all of the contacts you want to bulk edit into this group by dragging their names across from the contact list. Next, create a contact group by clicking on the plus (+) icon in the bottom left. If anything goes wrong in the following process, you can always just find this file and double-click it to restore your original Address Book. Open up Address Book and choose Export - Address Book Archive from the File menu. ![]() The first thing to do is to make a backup of your Address Book. For example, if you have a whole load of people at the same address, and they have all moved to a new address, or if a group of people share a phone number and they recently changed it to something new. This method is great if you have a group of people who share the same information. Here are two different methods, the first using TextEdit and the second using AppleScript. ![]() Unfortunately Address Book doesn’t support bulk editing a large number of contacts at once, but there are a couple of clever workarounds to achieve the same effect.
0 Comments
Leave a Reply. |