I just updated from Big Sur to Monterey 12.4. Monterey got rid of the Sidecar preference pane and now deals with what was "Sidecar" in the Displays preference pane, so the workflow as originally written no longer works. Tried updating it myself but haven't been able to get there yet — can't say my AppleScript skills are strong.
First of all, thank you for creating a convenient workflow, it works well on my machine.
The only thing I notice is that every time I activate the workflow, accessibility permission must be granted for the app running on the foreground at the time.
Is there any way to get around this issue? I don't want to add accessibility permission to all the apps that I use.