I have refined the script mentioned in Counters and my Mega Macro! and it is mostly working really well, but one area is still a bit inconsistent.
When I Export File as a PNG I use the minimised dialog, as it provides a generally more consistent Save result that the larger dialog.
In the script after the Export, I wait for the dialog to appear, paste in the variable <0001>.png into the filename field (which is the default selection in 90% of cases), pause, then save. This is followed by lots of layer manipulation in Photoshop.
This is repeated many hundreds of times.
Every so often it seems like the filename field isn’t selected and (I think) the tag field is, so the script stalls as it tries to save as the filename of the main file (which it must have done earlier as it is now a duplicate)
What I think I need to achieve is to ensure that the filename field is always selected.
Is that best achieved by using a Mouse Click, then Select All.
Or is there a conditional I could use, or another way altogether to guarantee that the filename field is always selected?
Thanks again in advance - all help gratefully received