Re: Get List of Contact Names and Associated EMails for EMail Addresses that contain a string
Re: Get List of Contact Names and Associated EMails for EMail Addresses that contain a string
- Subject: Re: Get List of Contact Names and Associated EMails for EMail Addresses that contain a string
- From: Jim Underwood <email@hidden>
- Date: Sat, 22 Jul 2017 00:16:15 +0000
- Thread-topic: Get List of Contact Names and Associated EMails for EMail Addresses that contain a string
Sorry for the blast of emails, but this concept/construct has really got my
attention.
Looks like the construct used by Mark
Alldritt<http://forum.latenightsw.com/t/how-do-i-search-contacts-for-string-in-email-address/676/3?u=jmichaeltx>
works the same way:
________________________________
tell application "Contacts"
set theEmails to (every email where its value contains "gmail") of every
person
set emailList to {}
--- This Construct Skips Empty Elements ---
repeat with anEmail in theEmails
repeat with anItem in items of contents of anEmail
set end of emailList to value of contents of anItem
end repeat
end repeat
end tell
________________________________
Best Regards,
Jim Underwood
aka JMichaelTX
From: AppleScript-Users
<applescript-users-bounces+jmichael=email@hidden<mailto:applescript-users-bounces+jmichael=email@hidden>>
on behalf of Jim Underwood <email@hidden<mailto:email@hidden>>
Date: Friday, July 21, 2017 at 6:50 PM
To: "ASUL (AppleScript)"
<email@hidden<mailto:email@hidden>>
Subject: Re: Get List of Contact Names and Associated EMails for EMail
Addresses that contain a string
Axel,
Thanks again. I failed to note the very important point that you made below.
Just to be clear, I think this is the statement you had in mind, from your
script:
________________________________
--- This Construct Skips Empty Elements ---
repeat with _email in (emails of people whose value ends with _domain)
________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden