Looking for help scripting URLs in Address Book

I am writing a script to manipulate the existing URLs in person entries in Address Book.

Here’s my code:

tell application “Address Book”
set personList to every person
repeat with onePerson in personList
set urlCount to count of urls of onePerson
– Process entry if at least one URL
if urlCount is greater than 0 then
– do some processing here
end if
end repeat
end tell

The set urlCount to count of urls of onePerson is always returning 0 even if there are URLs in the address book entry. I have similar code in other scripts to count the number of phones for a person and it works fine.

Can anyone help?

Thank you.

Model: MacBook Pro (early 2008)
AppleScript: 2.1.2
Browser: Safari 5.0.3
Operating System: Mac OS X (10.6)