Importing CSV data into JavaScript to create customer objects with properties.
Hello, all,
I have written a script that I use in Illustrator that opens a window where I type in customer information and the script enters it into varios text frames on an Illustrator proof template that I made. I have a list of regular customers that I would like to have appear on a drop-down menu. Currently, I have this customer information inside the JavaScript code itself, but I want to be able to have the script import the data from a CSV file. I have successfully imported the data, but it comes in as a single string of text, separated with the new line character (/n). I am trying to make each customer a separate object, with the object's properties the correct element from the imported CSV file.
I guess the short version is how can I make each element of an array a value of an object's property, as well as having the number of customer objects depend on how many customers are in CSV file. Each customer gets their own row of data in Excel.
