I'm looking to complete the first challenge of my project of repopulating text fields with translated text automatically. To do this I need to pull the text down from an Ai file. However, each text field must be identifiable so that it can be recorded into an excel spreadsheet. So the spreadsheet would essentially contain the following data:
Column 1
File Name + Text1(this being variable name)
Column 2
English text pulled from that variable text field
Column 3
Translated text
So I need to code a script to batch through a folder of Ai files and assign each text field in the drawing a unique identifier or variable, i.e. "Text1", "Text2", etc...
I know that I can convert a text field to dynamic flash text which allows me to manually name a field, however doing this through script is less obvious to me, any help would be apreciated!
Furthermore, if there is already a unique identifier on textfields by default that I can tap into, that would be nice as well. Otherwise I'd like to write a script that in the beignning of the code it steps through the number of fields and assigns each a unique identifier, copies that identifier to a spreadsheet, then next to that, copies in the text from the field into the spreadsheet as well.
Thanks,
-Chris