I wrote a piece of Applescript that changes the wallpaper on macOS. I usually have multiple virtual desktops (spaces) and I'd like to manage all of them. While it seems to be easy to control physical desktops (i.e. on a different monitor), I can't find a way to do the same for virtual desktops. Of course I did some research before posting and, as far as I see, there are only unsatisfied questions, at least up to 2022. Can somebody confirm nothing has changed in the past year?
PS I've seen utilities written in other languages (e.g. https://github.com/georgesofianosgr/wally) that seem to do the job, but I see that they are reverse-engineering hacks directly manipulating system databases, so I prefer not to use them.