I run some tests on my Mac that take several hours. When the tests are done, I want to send myself an email with a screenshot of the test results.
Here is how I configured my Automator App:
- New mail message (to me, subject: tests done, message: here are the results)
- Take screenshot (type: full screen, main monitor only, save to Desktop: latest-test-results)
- Add attachments to front message
- Send outgoing message
This doesn't work because when the screenshot is taken, the Mail app is already open and covering Terminal, which is showing the test results.
So I next tried this:
- Take screenshot (type: full screen, main monitor only, save to Clipboard)
- New mail message (to me, subject: tests done, message: here are the results)
- Get contents of clipboard
- Add attachments to front message
- Send outgoing message
For some reason, this action sends me an attachment that is a zip file containing the files on my desktop, but not the screenshot, which is apparently not saved to the desktop. I don't want a zip file; I want the actual screenshot, and obviously I don't want all the files on my desktop.
This seems like a simple task... what am I doing wrong? I want to take a screenshot and then email it to myself. The Automator app is triggered through a bash script that runs the tests.
macOS Ventura.