Address Book checking if contact already exists

Is it possible for an applescript to check whether a contact exists or not.

for example:

checkContactExist(theFirstName, theLastName, theEmail) --returns true or false whether or not that contact is in the address book.

Thanks!

Hi,

try this


on checkContactExist(theFirstName, theLastName, theEmail)
	tell application "Address Book"
		return (exists (1st person whose first name is theFirstName and last name is theLastName and value of emails contains theEmail))
	end tell
end checkContactExist