.jsx Script that saves edited .jpg to subfolder with the same filename.
The goal is, preferably in JavaScript, if not possible, seeing as the process is being carried out on a Windows machine VBS is the acceptable alternative, to automate by means of scripting the process of saving a file to relative path, that is, the subfolder within the folder of the original .jpg.
Process example is as follows:
Opened/active file name: 42.jpg
Save edited file as: 42.jpg
Opened/active file folder: ~\jpg
To folder: ~\jpg\Edited
(Folder location not constant which gets absolute path out of the question.)
JPEG Options:
Matte: None
Image Options: Quality: 12
Format Options: Baseline ("Standard")
Reason for looking into a scripting solution being that, unlike Photoshop's built in Batch processing tool, as far as currently understood, the operation would have to be able to be carried out at certain point, when required, that is, be activated as an Action by keyboard shortcut, and as far as the awareness of capabilities of the Batch tool goes, while it is able to accomplish the task in question where process is fully automated in which case it is extremely useful, when process has to have interuptions for purposes of editing the image or any other kind of user inputto be made, the only remaining option seems that there is perhaps a requirement for a script.
Several attempts were made, some of which included copy/pasting a number of whole code sets, with minor changes being made to it for purposes of adaptation, as well as trying, without avail, to make the script for completing the task by crumpling together various snippets of code from multiple sources, though due to heavy limitations of time slot availability and not high enough level of familiarization with JavaScript and coding alltohether as the case may be, such methods were of no use thereby leaving this, that being directly asking for it the only potentially viable option.
Thanks in advance.
