Yes, I have Excel installed and I know how to use it. I specialize in EasyCatalog automation but script writing is my weak point.
Sorry if my tense seems dry, English is not my language. 🙂
Yes, I have Excel installed and I know how to use it. I specialize in EasyCatalog automation but script writing is my weak point.
Sorry if my tense seems dry, English is not my language. 🙂
By @RYR9
Great.
No worries, your English is perfectly fine - for me at least 😉
Instead of a script that will read new names from the CSV file and process them in a loop, bla bla bla 😉 - you can generate script in Excel - and then just run it 🙂
In JS, to rename a style - in a group, one level deep - you would have to do something like this:
app.activeDocument.objectStyleGroups.item("level1").objectStyles.item("old_name_1") = "new_name_1";
For 2x levels:
app.activeDocument.objectStyleGroups.item("level1").objectStyleGroups.item("level2").objectStyles.item("old_name_1") = "new_name_1";
I hope you get how 3rd level would look like 😉
So, in Excel, you would've to create a spreadsheet, that will use data from your CSV file - and will build lines like the above - using concatenate().
Just remember that your names need to be enclosed in " ".
Then:
https://creativepro.com/how-to-install-scripts-in-indesign/
I hope my explanation is clear enough 😉
I just prefer simple solutions 😉