Thank you very much for your detailed explanations and for your patience.
To an outside observer, what I’m trying to do might not seem to make much sense.
To understand why I want it this way, it helps to know that years ago I faced the challenge of transferring Safari content and open tabs from my iPhone and iPad over to my Mac.
This thread solved it for me — simply, definitively, and reliably:
I still have some old emails from before that time, and for those, archiving them as .eml or .mbox files doesn’t really make sense — at least from my perspective. The most practical solutions are either PDF files (created via Export as PDF, not via Print) or plain text files.
Since I currently have some spare time, I decided to finally tackle this project.
I have to admit, I would never have thought of your Smart Folder approach.
Because the AppleScript version doesn’t run reliably for me (for reasons I haven’t figured out), I created a simple Repeat for Each loop, which works perfectly for my purposes.
I’ve marked your AppleScript solution as the official answer.
Attached below is the Repeat for Each macro template I created for myself:
repeat template.kmmacros (5.8 KB)
According to ChatGPT, the “Arrow Down” action should be placed at the beginning, but personally, I find it works better at the end.
