Could be, but I’ve been trying it for a while now and it continues to error out.
Just on the off chance I had done something wrong, I reset Ulysses and System Events in the privacy database. No luck.
I happen to be using the Setapp instance of Ulysses – same version; different bundle ID than the regular instance. It’s possible that’s a problem. You might want to use the “ULY3” app ID in your script, if you’re not already doing that.
Never mind – changing the ID in the script doesn’t make it work.