How to write variables into filenames?
I want the script to read the value on the filename as the actual setting for the script to run.
For example, I have a piece of code. It is used to change the table row height (denoted by bh). Continued table row height (denoted by ch).
For example the code for the bh section looks like this:
var bh="6.8mm";
for (var i = 0; i < myTable.rows.length - 1; i++) {
myTable.rows[i].cells.everyItem().minimumHeight = bh;
}
My script file name looks like this:
Tab-auto.jsx
I'm hoping that just changing the file name will affect the settings.
Change it to something like this:
Tab-auto@5@6.8.jsx
5 means ch=5mm.
6.8 means bh=6.8mm.
how do I write the code.
Thank you very much.
