HI everyone, its be 2 days i am banging my head with this, kindly help me in this
I want to save the files in a batch while the output folder is given by User and name of the files are going to be dynamic with each save.
I know that i have to provide a session token to save the files on user given location.
The problem is that user folder object is fixed but file name is changing, how i can cast these two different in a single sessionTokken and call the save method.
for the record i have tried each example given in this community for jpeg save and also tried alchemist method.
Entry is an object, it is generated by file/folder pickers (among others) or getEntryWithUrl(url) and used with (save, open, read, write… etc) aka normal functions
Tokens area strings generated from entries (for session or persistent) and used in batchPlay action descriptors in place of _path
@Maher you are a great citizen, humble and nice, thanks for being here in this community, you brought us the best explanation so far on how to use the long awaited feature “fs.getEntryWithUrl(“xxx”)”
Now we can even save the active document in a subfolder inside the main folder directly. Thanks for sharing.
@PS-fxrios Thankyou sir for adding more detail, @Maher 's quick reply and effective solution was really helpful.
@PS-fxrios about your solution , i have a question since i have been using UXP , try catch is not working properly, code does not handle error like it should handle with normal try catch, it did prompt the error to photoshop. Can you please guide about this,
about your code i have a ques