We have a corporate directory, that permits downloading of people’s vCards. I have collected many emails in my Contact without the rest of the data.
The URL looks like
http://www.directory.here.com/dir/vcard/waynwill.vcf
What I would like to do is to scan through the contacts looking for a @here.com email, if there is one download the vCard, and then merge it with the contact.
I am ok with the dialog popping up…
I can figure the scan the contact data base looking for the emails, with something like
repeat with onePerson in (get people)
set theEmail to (get value of every email of onePerson) as string
(* if there is a @here.com in the email address needs to be checked *)
if (theEmail as string) contains "@here.com" then
-- do download
-- do import
end if
end if
end repeat