Performing a Bulk Search on a List of Email Addresses

I'd like to create a macro that does the following:

  1. I provide a list of email addresses. I can provide this as a file, or as a comma separated list.
  2. For each email, I want to insert the email into a URL search query, like this:[email address here]

  1. Then I'd like a new tab to open in Safari with the search result of each email address that was provided (so if I provide a list of 10 emails, I'll get 10 tabs open with the search results for that email).

Does anyone how how I'd do this?

Assuming the file version of the list has each email address on its own line, the For Each and New Safari Tab actions make this very easy:

Example Macro.kmmacros (1.9 KB)

Just fill in the file's path and the real search URL where appropriate and you should be set.

1 Like

This worked a treat, thanks!

1 Like

Hey @paulminors,

I really like @gglick's version. It's simple and efficient.

Here's one with a few more bells and whistles.

Open Email Search List in Safari.kmmacros (9.8 KB)

I've deliberately introduced whitespace in the input list, because that often happens in real life.

I've used AppleScript to manage the text concatenation and open the links in Safari, as this gives me finer control over how things get done. (Although all of this can be done easily enough with native Keyboard Maestro actions.)



Wow, thanks for sharing Chris.

1 Like