Story Splitter Script Indesign Download ((BETTER))

90 views
Skip to first unread message

Chrystal Imaizumi

unread,
Jan 25, 2024, 11:08:42 AM1/25/24
to polopinscal

Can anyone help? I've found a lot posts about this and I can't beleive InDesign hasn't developed a script for this. InDesign's splitstory or breakstory scripts unthread ALL of the text boxes, which I don't want. I've read about storysplitter.jsx which may work but I can't find code that works. The code is offered in several places and have tried each of them but they all come up with errors and thus, don't work. (I'm not knowlegeable with code at all so I would need one that doesn't require editing, if that's the answer)

Several people have asked for a way to split a story into its component text frames, with each frame retaining its original content (that is, unthread all of the text frames but leave the content in place). I've posted a script called "SplitSelectedStory" that does just this to Adobe Xchange--you can go to =54 and download the script from there. Using the script is very simple--just select one of the text frames in the story and run the script. InDesign will then split the story into separate text frames. You need not know anything about scripting to use this script--but you can also view the script if you're interested. Thanks, Ole

story splitter script indesign download


DOWNLOAD 🆗 https://t.co/d4SaYd3nFU



Nice. I didn't realize it was that easy. You inspired me to write this script: tell application "InDesign 2.0.1" try set theStory to parent story of selection on error beep return end try set theParaCount to count of paragraphs of theStory set theFrameCounts to (count of paragraphs of text frames of theStory) as list set theFramesParaCount to 0 repeat with theFrameCount in theFrameCounts set theFramesParaCount to theFramesParaCount + theFrameCount end repeat if theParaCount < theFramesParaCount then activate display dialog "Warning: at least one paragraph sits across a frame boundary in the story you've select. Are you sure you want to proceed?" -- etc end if -- etc end tell I presume you tackled the finding of the parent story in the way you did because you lifted that code from somewhere else, but the try construct I used here is less fiddly. However, the real point of my little script is to detect if a paragraph crosses a frame boundary because if it does then running your script might not achieve the desired effect (because of indents, drop caps, etc). My question is: is there an easier/quicker way of discovering that circumstance? Dave

You've really got three selection cases: 1. Text is selected. 2. Insertion point is selected. 3. Text frame is selected. The insertion point object does not have a parent story property, and trying to get the parent text frame of a selected range that spans multiple text frames would generate an error, so I simply collapsed the first two cases into a single case. The other possible text objects returned are there "just in case"--I've never seen them come up, but I have a sneaking feeling that they might, at some point. re: overset text Nah! My assumption was that you'd just want it blown away. I'm not a big believer in putting up lots of warnings and messages--my approach is: if the context is in the range of what the script expects, then do something; else do nothing. Thanks, Ole

Inspired by the one above, this script also converts InDesign footnotes into endnotes. So you need footnotes first. Endnotes are only possible within stories (single or linked textframes), you'll find your endnotes at the end of the story.

You only need to select the text frame in the point you want to split your story. So, the story will be splitted from the selected text frame to its end. It could be useful when used in conjunction with my thread frames script, giving you more power about threaded text frames and stories.

UPDATE 2014/8/24: I have written an article for indesignsecrets.com that demonstrates two possible ways of doing this via InDesign that do not require any scripting, but they are not one-step solutions.

If you need to quickly scan your active story or a document in order to detect a part with a cluster of italic, bold, etc., the Perfect Prep will do a great job. When the area is found, the InDesign script generates a character style (if there is none yet) and applies it to the text.

ffe2fad269
Reply all
Reply to author
Forward
0 new messages