Skip to main content
Inspiring
November 7, 2019
Question

script to delete the rows

  • November 7, 2019
  • 2 replies
  • 491 views

I have a table with 70 rows and i want the delete the even number rows i.e 2nd, 4th, 6th, 8th and so on, i need script for that, please help

This topic has been closed for replies.

2 replies

Community Expert
November 7, 2019

Look at the following

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Table.html

If you have the table object, the it has rows property, which is a collection of row. Each row has a remove method. Work on this and it should solve your problem. If you delete rows one by one then deleting them from bottom up should be safer.

 

-Manan

-Manan
Community Expert
November 7, 2019

Hi,

what did you try so far?

Can you show some code so that we can help if you are stuck?

 

Regards,
Uwe Laubender

( ACP )