Yes the first one you posted. Thanks the reply, Dan. I have copied directly into the script editor and ran it, typed it in text editor and saved it’s as a .jsx nothing is working. I think, maybe it’s because I’m running over a server, adobe products never work great over server.
Any ideas would be great. It would be great to not have to do it the long way round.