Dealing with mail as pdf

Dealing with mail as pdf

Mail pdf.kmmacros (3.0 KB)

Hi everyone,

I recently discovered the existence ok Keyboard Maestro while trying to find information about how to automate mail sorting and printing.
I gave it a try and wanted to see if it suits my needs (but considering all what it can do, I think it would!) before buying it.
Here's my problem :slight_smile:I want to save mails of a particular mail box (sorted by a mail app rule) and change their status.
What I managed to do :slight_smile:

  1. create a KM macro that saves a selected message to a defined folder.
  2. create an apple scripts that selects the right folder and changes the flag status of all the messages of the concerned mail folder
  3. call the macro from the Apple script.
    I get the flag ok, but the KM macro only saves the same mail x times (x = the number of messages in the folder).

I'm sure I'm missing something with the varialbes in KM. But I knew to "programming" and I don't really know what i'm doing or looking for...

If someone could lignht my way...
I'm open to any suggestions allowing to do things in a simplier way, of course.

Thanks