Address Book has an Export option in the File menu that makes it easier to do a backup. That's what I did before running all the AppleScript stuff. Still haven't found a way to get the AppleScript technique to work, but editing the SQLite DB directly does work at least.
I was up late and didn't get anywhere either. I think the reason it is not changing/emptying the field is due to the fact that everything being acted upon are variables that take on the value of the stuff we're trying to change. So, when you set the "value of this_url" to "" it doesn't affect what is stored. Does that make sense?
Edit: This is strange. I finally get all the urls to go to "" but they're not changed in Address Book. Any ideas?
PHP:
tell application "Address Book"
set output to ""
repeat with this_person in every person
set numurl to count (urls of this_person)
if numurl > 0 then
set theurls to properties of urls of this_person
repeat with this_url in theurls
-- Capturing the urls and a new line
set output to output & (value of this_url as string) & return
--remove (value of this_url)
--display dialog (value of this_url)
--set (value of this_url) to ""
set value of url of this_person to ""
display dialog "got here"
display dialog (value of this_url)
end repeat
end if
end repeat
display dialog output
end tell
I added this line: set value of url of this_person to ""
This seems to zero out the urls, but doesn't fix it in the actual address book.