Copy link to clipboard
Copied
Hi,
So I have a document where I used Data Merge to input 300 images onto each spread. Now that I have a 300-page document, I need to flow in text. I cannot use Smart Text Reflow because this creates and adds new pages, when I just need the overflowing text to simply link to the next (already-existing) text frames.
Is there a way to do this using a script so I don't have to manually connect text frames? I don't know how to write a script from scratch but am familiar with running a few to help my workflow.
Thanks!
Copy link to clipboard
Copied
Try this. https://www.rorohiko.com/wordpress/indesign-downloads/textstitch/
I also write scripts.
Copy link to clipboard
Copied
No, it is not working. There si no scripts for indesign.
Copy link to clipboard
Copied
Discussion moved to InDesign Scripting​
Copy link to clipboard
Copied
You did not specify script language. Here is a simple script written in AppleScript that connects text frames in a document in the order in which they were created. This works using the id of the text frames. You will want to make sure the text frame ids are returned in the correct order (depends on preference settings). The variable at the end of the script (frameList) will allow you to verify the ids of the text frames. If the numbers are in the correct order, remove the (* and *) and run the script again to link the frames.
set frameList to {}
tell application "Adobe InDesign CC 2019"
tell document 1
repeat with i from 1 to count (spreads)
set pageList to (id of every text frame of spread i)
set revList to reverse of pageList
set frameList to frameList & revList
end repeat
(*set thisFrame to text frame id (item 1 of frameList)
set numLinks to (length of frameList) - 1
repeat with i from 1 to numLinks
set nextFrame to text frame id (item (i + 1) of frameList)
set next text frame of thisFrame to nextFrame
set thisFrame to nextFrame
end repeat*)
end tell
end tell
frameList