image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old July 6th, 2006, 10:42 AM
Registered User
 
Join Date: Feb 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
vincentpace is on a distinguished road
Find and replace or batch change in Address Book?

I'm looking to convert a whole slew of telephone numbers in Address Book to make them Skype compliant. There are a variety of find-replace patterns I want to use. One example is an area code in parentheses. For example, I want to change (215) to +1 215. There are thousands of numbers in my address book to change, and manually is not an option.

Address Book doesn't have any way to do this on its own. I checked out Automator but it doesn't have many useful Address Book functions. I dug around for a bit online for an AppleScript that would just go straight to editing the AddressBook.data file, but didn't find anything.

I tried to edit the AddressBook.data file myself using TextWrangler, but when I saved it, AddressBook.data's icon changed from a blank file icon to a plain text file icon and Address Book stalled out while opening, necessitating a force quit. So I reverted to my back up and am no closer to solving the problem.

Is there a way to do a find-replace or a batch change in Address Book, whetever via AppleScript or otherwise?

If not, how can I edit AddressBook.data and save it without it become a text file that Address Book chokes on?
Reply With Quote
  #2  
Old July 7th, 2006, 07:35 AM
Registered User
 
Join Date: May 2005
Posts: 1,339
Thanks: 0
Thanked 1 Time in 1 Post
barhar is on a distinguished road
'Is there a way to do a find-replace or a batch change in Address Book, whether via AppleScript ...' - yes.

01. Create a duplicate or archive of your '~/Library/Applicaton Support/Address Book' folder.

Within 'Script Editor' (AppleScript editor application) -
02. Create a list of persons.
03. Cycle through the list of persons, creating a list of each person's phone numbers.
04. Cycle through the individual's phone numbers, modifying each phone number - into the desired format.
05. After cycling through the list of persons, save the address book - which saves all the changes.
Reply With Quote
  #3  
Old July 7th, 2006, 08:02 AM
Registered User
 
Join Date: Feb 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
vincentpace is on a distinguished road
So then one way to do it is to write an AppleScript. Do you know of anyone who has already done this? Or, at the very least, something similar? I'm pretty sure I could handle the minor changes in such a script (i.e., changing the find-replace patterns) but I wouldn't know how to hammer out from scratch a script that does what you suggest.
Reply With Quote
  #4  
Old July 7th, 2006, 08:19 AM
Registered User
 
Join Date: Feb 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
vincentpace is on a distinguished road
I also tried to use TextEdit to make textual changes to AddressBook.data with TextEdit's find-replace function. After using this, Address Book did not stall out when opening (although it took a while). Nevertheless, the changes I made were not reproduced in Address Book. Does Address Book try to back up data from somewhere else? Why is it that textual changes made directly in AddressBook.data and saved by TextEdit did not exist after opening the file with Address Book?

Is there a way to textually edit the AddressBook.data file, save it, and then open it in Address Book with the edits that you made?
Reply With Quote
  #5  
Old September 23rd, 2008, 02:56 PM
Registered User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
joshfree is on a distinguished road
Did you ever get this issue solved? I have a very similar problem and it drives me nuts. I like the integration of Address Book, but hate the crude data entry and lack of batch editing. Any ideas?
Reply With Quote
  #6  
Old September 23rd, 2008, 04:15 PM
Registered User
 
Join Date: Feb 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
vincentpace is on a distinguished road
Nope, I'm still looking for a good way to do this. Let me know if you come up with anything.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch change of extension smolz Mac OS X System & Mac Software 4 July 8th, 2006 11:10 PM
Address Book import from old Address Book data govinda Mac OS X System & Mac Software 2 July 25th, 2005 02:27 PM
Dreamweaver: Can I OMIT in Find and Replace? MDLarson Design & Media 2 April 6th, 2005 12:15 PM
Find and Replace Text Across Multiple Files? cgp314 Unix & X11 7 January 8th, 2005 03:14 PM
GIANT Find & Replace HyperLiteG4 Mac OS X System & Mac Software 3 June 6th, 2002 07:03 PM


All times are GMT -5. The time now is 02:22 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.