Skip to main content
Inspiring
July 25, 2023
Answered

Script to insert text and image in table

  • July 25, 2023
  • 1 reply
  • 345 views

Hi, I am asking for your help to create a script that reads two txt files, distinta.txt contains a code for each line, maintenance.txt contains a code, a letter, a whole number, divided by a comma.
I would like to find the common codes between the two files, read the letter and the number from the file maintenance.txt and insert them in a table in indesign, as attached, so that the code is inserted in the first column, and based on the letter insert an image in the cell corresponding to the number (equals the hours of maintenance)

This topic has been closed for replies.
Correct answer brian_p_dts

Probably easiest to clean up your data in Excel and lay it in the table, then grab your images. Or you're talking about fairly involved custom script development or a third-party plugin like EasyCatalog. 

1 reply

brian_p_dts
Community Expert
brian_p_dtsCommunity ExpertCorrect answer
Community Expert
July 25, 2023

Probably easiest to clean up your data in Excel and lay it in the table, then grab your images. Or you're talking about fairly involved custom script development or a third-party plugin like EasyCatalog. 

Inspiring
July 25, 2023

i agree, I decided to use data merge to perform this operation, you may close the post