How set frame delay of gif with Photoshop Script
I'm new at this. I'll be glad for any advice. I researched the documentation and also tried to find something useful here but I didn't find anything. I try to write the code which gets the last frame of the gif and sets the delay of this frame. Like on this screenshot in Photoshop. Any ideas? Thanks for attention!
Pseudocode example:
const allFrames = myGif.getAllFrames
const lastFrame = allFrames[allFrames.length - 1]
lastFrame.setFrameDalay(1)
Something like this...

