Script loop breaks randomly

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

PdFUser5000
Posts: 1
Joined: Wed Feb 09, 2022 5:54 am

Script loop breaks randomly

Post by PdFUser5000 »

Hello

I have a script that opens nested smart objects that are linked and updates them.

My problem is that in every single computer i have tried this script, the loop breaks on random layers. Sometimes the script works fine, but if the Illustrator file is changed a few times, the loop breaks and closes the main file. Tried looking help on Adobe forums, but only one person replied, who said that on his PC the script works fine every time.

How can it be, that in every single PC i try the script, the same loop error occurs. But others seem to be able to use it ?

Adobe community thread: https://community.adobe.com/t5/photosho ... /2#M620044

Files:

https://drive.google.com/file/d/1YfGQRI ... sp=sharing

what happens in my computer: https://imgur.com/a/DMkHQCN