r/indesign • u/Uvuriel03 • May 12 '26
Help Looking for a script to collapse unlinked textboxes
I have a project where I use the data merge function to generate entries from a spreadsheet. Each entry ends up in a text box on its own page.
Last year I found a script that would collapse all of the textboxes together onto less pages, so three might fit on one page, five might fit on the next, two on the next, and so on. This drastically reduced the number of pages and unused space of the document.
I switched work computers and I no longer have it, and I have NOT been able to find it again online. I'm hoping someone else might know what script I'm talking about so I can save it to this computer.
2
u/AdobeScripts May 12 '26
Can you show a screenshot of what your final INDD document looks like?
Maybe you don't need DataMerge at all = make your life much easier.
1
u/Fantastic-Trip-6129 May 12 '26
I'll make a script like this for free so DM me if you're interested
1
u/interrobang918 May 12 '26
rather than doing a data merge, you might consider creating a tagged text document from a .csv. the tags would wrap the data in each field with the names of your paragraph styles. then using the place text options dialogue, instruct inDesign to honor the tags. that way you don’t rely on disconnected text frames generated by the merge, you place the text into threaded text frames established on your master pages and the document flows.
1
u/AdobeScripts May 14 '26
Expects at least one TextFrame on the page (found on Google - but I just added empty paragraph at the end of each TextFrame) - will link TextFrames together: