Have you tried using $.evalFile() or @include to access a jsx file outside the standard directory?
I have not. Unfortunately, there seems to be limited documentation on this stuff. Would you please be able to provide a short example of how either of those would work? Thank you very much.
You can try to create a symbolic link instead of the Scripts folder or jsx
after deleting the target folder (Scripts or jsx)
from the command line, call
mklink /d "C:\Program Files\Adobe\Adobe Photoshop CC 2017\Presets\Scripts" "C:\Program Files (x86)\Common Files\Adobe\CEP\extensions\PanelNamel\jsx"
after removal Scripts folder
mklink /d "C:\Program Files (x86)\Common Files\Adobe\CEP\extensions\PanelNamel\jsx" "C:\Program Files\Adobe\Adobe Photoshop CC 2017\Presets\Scripts"
after removal Scripts jsx folder.
I would say that $.evalFile() (passing an absolute path) is the easiest option, as Chuck has suggested.
If you're looking for HTML Panels help, please check out the Adobe CEP Forum here: Extensions / Add-ons Development – it has a resources section as well.
I have no idea your CEP (or however it's called) recognizes single scripts that are nasted in location you linked to (so like Photoshop is able to do with) but you may give it a try and let me know:
File(Folder.commonFiles + '/Adobe/CEP/extensions/PanelNamel/jsx/Scripts').createAlias(Folder.startup + '/Presets/Scripts')