This is fantastic! Just what I was looking for!
I am not very knowledgeable in JSL, maybe someone can help me modify the proposed script to my need...
I modified the above to import an image from my computer resulting in:
New Table("test", Add Rows(1), New Column("Image", Expression));
:Image[1] = New Image("C:\Photos\Capture.png"
);
What I would love to have is a JSL script that I can save into an existing table and that, when run, would do the following:
- Look at table variable "Location" and read the folder path of the images I will want to import. Lets say this is "C:\Photos"
- Look at column 1 and read the content of cell 1 which is the name of the first image to import. lets say this is "holiday1"
- Join the path and the image name to plug it into the above script to import the image in cell 1 of "column 2"
- Loop through all the rows to import all the images.
It sounds feasible to me, just I do not know how to script many parts of the code. I am going to start researching on how to write this but if someone gets to a solution...:)
Thanks!