I manage quite a few unique FindChangeByList scripts for my team; each script has its own associated text file for the find/change queries. Whenever I modify and save changes to one of the txt/query files, I then have to go around to each user’s computer and update the text files in their FindChangeSupport folder. This can get cumbersome. I’m wondering if it’s possible to point the javascript to a file saved on our server instead.
But, I can’t seem to figure out the correct way to make it work. No matter how I type the filepath in the script, it doesn’t like it. InDesign just opens the “Choose the file containing your find/change list” dialogue.
The scripts are slightly modified versions of the “FindChangeByList” script that comes stock with InDesign. I’m using Windows 10, CC2018.
The script is named FindChangeByListNAME1.jsx with a corresponding FindChangeByListNAME1.txt file.
On line 113 of the script, it references the txt file:
var myFindChangeFile = myFindFile(“/FindChangeSupport/FindChangeListNAME1.txt”)
I want to change the quoted filepath to be the one saved on a mapped network drive. Is it possible?
location on mapped drive is
“F:\Production\5. Tools\1. Scripts\FindChangeSupport\FindChangeListNAME1.txt”
(In my many attempts to make this work, I’ve changed the backslashes to forward slashes, changed the spaces to %20, and tried it all again using the full UNC path. None of it seems to make a difference. So it seems there’s a step that’s missing somewhere, but I’m not fluent in javascript enough to know what to try next!)
Any ideas? THANK YOU!