Ok, so you’re asking quite a few questions in one here but I’ll try and give you a high level overview:
1.) Get files as UXP
2.) Loop through each file and:
2.1) Run split Action (or do it with UXP!)
2.1) Loop document layers and:
2.1.1) Export layer with new name - see
batchPlay comment below
I’d start with the vanilla starter plugin from UDT and build a simple folder picker to achieve step 1 above and then go from there.
EDIT: I’ve just read this back and I’ve got to apologise for the patronising tone! In my defense I wrote it whilst walking down the street and I was interrupted by two conversations!
Whilst not exactly what you want to achieve this example has a lot of the ingredients and demonstrates using
executeAsModal, two core UXP concepts, alongside JS asynchronous code.
Thanks Timothy, I really appreciate your help and the mention of batchPlay and Persistent Storage API will take a look at this and see if I can get something working!
And this thread offers a more high level approach to how to structure some UXP JS.