Photoshop ExtendScript bug using latest and recent versions all platforms:
For textItem that uses text on a path, when the content is updated the text position shifts. The easiest way to show the problem is with a simple PSD and a simple JSX to run on it. The PSD has a duplicate layer of the original text on a path. After running the script it is easy to see how the position has shifted.
https://www.dropbox.com/scl/fi/mykl6mqw81qvzobvj46ps/TEXT-ON-PATH-PROBLEM.zip?rlkey=c8n5yn54cuoqf2nj...
William Campbell