I want to print specific emails to PDF on their arrival in my inbox, and then process them using Hazel.
I've a KM macro that works - just not in the Mail.app rules engine (it beeps when it tries to run):
tell application "Keyboard Maestro Engine"
do script "376546DE-E118-462E-8A0D-71E8348DA900"
-- or: do script "PDF Print"
-- or: do script "376546DE-E118-462E-8A0D-71E8348DA900" with parameter "Whatever"
end tell
Is the Mail.app rules engine flaky, or am I missing something?
Mail rules are, if not flaky, a challenge to make work as expected.
The issue is most likely getting a proper reference to the PDF attachement that KM can use.
I'd suggest this process:
Create a Mail rule that uses AppleScript to save the PDF attachment(s) to a specific folder that KM watches.