title: Automator takes screenshot of background instead of window
body: <p>System specs: mac OS Monterrey V12.5, Apple M1 chip 2020</p>
  <p>I am making an application which will take a screenshot of a video, and take the timestamp of the current point in this video, after which both the timestamp and screenshot will be send to a numbers file (mac OS excel like program).</p>
  <p>I could not find an application to do this and I tried to get it working using python as shown <a href="https://stackoverflow.com/questions/73179094/tkinter-intermittent-segmentation-fault-when-setting-master-screen-transparent/73198072#73198072">here</a> but was unable to. Now because I am on Mac I have decided to use Automator instead. I am currently on the screenshot part and Automator has a build in screenshot functionality.</p>
  <p>Unfortunately, this screenshot does not detect browser or application windows, it will only take a screenshot of my background.</p>
  <p>I have no idea why this is but I suspect it might have to do with permissions related to the M1 chip.</p>
  <p>I tried different monitors and simplyfying the automation to just taking a screenshot, but so far nothing has helped, I could not find others online who had a similar problem.</p>
  <p>If there is any information missing from this post I will be happy to provide it.</p>
  <p>Edit: It seems to be some kind of permission issue, automator CAN take screenshots within Safari, now I just need to find a way to do so in firefox.</p>