Since a couple of weeky some scripts suddenly stopped working. I was able to tackle down the problem. I created a script with just one line:
alert(Folder.userData) // null
I am on a Macbook Pro M1 / OSX Ventura 13.2. Problem appeared in AE 22 & 23. I deleted everything and only installed 23.2.0.
Same Script works within AI and PS and outputs:
~/Library/Application%20Support