Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SevenEleven

macrumors member
Original poster
Jul 16, 2008
42
0
Hi,

First stab at creating an applescript. I have a bunch of address book entries that have a double space between their first and last names. As a result I am unable to cleanup my contacts because the remove duplicate entries doesnt find them.

I stumbled around a bit and came up with an applescript that finds them and gives me a list of the results. However I dont know what I can do with it. Create a group and then edit the group, or maybe I can script it to remove the extra space?

I am new at this and suprised I got this far. Any help would be appreciated.

Here is what I have:

Code:
tell application "Address Book"
	set thePeople to (the name of every person whose name contains "  ")
end tell
set selectedPerson to (choose from list thePeople)

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.