How to use javascript to save jpeg-xr files
I am working with JPEG-XR files, with *.wdp extension.
Now I am using action to save active document to jpeg-xr.
However, since the actioin is recorded, everytime the saved file will be of the same file name.
I want to automatically change the saved file name according to the original file name.
I believe, using javascript, this can be done.
However, I don't know how to pass all the arguments, including file name, image quality, and so on, to the saving command.
The 'image quality' option is not even in the save file dialog, it is in another popup dialog, after one entered the file name in the save file dialog.
I see that, with other file format, say jpeg, there is a JPEGSaveOptions for Document.SaveAs() method.
But I can't find the saving options for jpeg-xr files.
I know that this jpeg-xr file format is not intrinsic to Photoshop.
I installed the plugin, downloaded from Microsoft website:
https://www.microsoft.com/en-us/download/details.aspx?id=52369
