I am interested in creating a custom variable where I can edit the document name. For example, my document is called "Myfilename_001.indd". I wish to omit everything except for the "001" because that is the version number of my file, and I want that to be the output. Is this possible somehow? Or would I need a script to help do this? Ideally, it would be nice to do it in a way where only the last three characters of the document, sans extension, are the output (if this makes any sense)
Thanks in advance
This is currently not possible via the Text Variables in InDesign.
With scripting you can do it but it won't remain live, i mean it would work for the current name of the document, but if you change the document you might need to run the script again beacuse that way you would be putting plain text in there.
WIl doing this just once solve your problem?
Thanks for getting back to me Javed. Unfortunately, I want it to remain dynamic.