Partial File Name Text Variable that updates when you rename the file
Hi all,
I've seen a couple of old posts related to this topic, but I'm new to scripting and I've not been able to solve my specific issue myself so far.
I'd like to insert a text variable into an indd document that takes the first 7 characters of the file name and inserts it as a variable. All documents are named as J00XXXX_filename.indd, where J00XXXX is a unique job number. I'm creating a template where we would open it, save it with the new job number (always following the J00XXXX naming convention) and I'd like the text variable to change when you rename the file.
Any help would be much appreciated! Thank you!


