I want to take a screenshot of the MM desktop (MM 2018 running OS13) at intervals and have it sent via email. So, I have written a script that does this. Purpose is to see what is going on when the MM is unattended. The MM is used as a server so runs 24/7.
The script work fine if I am logged in via another computer. It does not work if I am not logged in. So, I am pretty sure it is not the script (see pic of error below).
My suspicion is that somehow the MM notices that nobody is there (so to speak) and as such the screenshot does not work.
The MM has a dongle (Brand MI TV) in the screen port. I needed to do this since screen sharing (via remote management) does not work properly without a monitor connected. The dongle does the job for that perfectly (see also the pics of error below of the control panel).
The Dongle is present during the booting process, so one would think the Mac thinks there is a screen. However, does not seem to be recognised as a screen if I want to make a screenshot.
Does anybody have an idea as to how to trick the system in to thinking there is somebody watching on a screen and so make the picture work? Again, logged in it works, not logged in it does not.
Here the pics of the control panel after I connect or disconnect the dongle.
Here the pic for the notification I get when the script runs, and it does not send a screenshot.
I look forward to your thoughts.
The script work fine if I am logged in via another computer. It does not work if I am not logged in. So, I am pretty sure it is not the script (see pic of error below).
My suspicion is that somehow the MM notices that nobody is there (so to speak) and as such the screenshot does not work.
The MM has a dongle (Brand MI TV) in the screen port. I needed to do this since screen sharing (via remote management) does not work properly without a monitor connected. The dongle does the job for that perfectly (see also the pics of error below of the control panel).
The Dongle is present during the booting process, so one would think the Mac thinks there is a screen. However, does not seem to be recognised as a screen if I want to make a screenshot.
Does anybody have an idea as to how to trick the system in to thinking there is somebody watching on a screen and so make the picture work? Again, logged in it works, not logged in it does not.
Here the pics of the control panel after I connect or disconnect the dongle.
Here the pic for the notification I get when the script runs, and it does not send a screenshot.
I look forward to your thoughts.
Last edited: