![]() It doesn’t help much when it comes to our wanting to get the text frame ids for later re-threading. This solution takes care of non-threaded text frames accidentally being selected. As with BreakFrames the selection is tested for text frames and uses the parent story as its text frame reference. For this script any text frame within a thread can be selected. Similar to BreakFrames, InDesign includes a script named SplitStory. Set AppleScript's text item delimiters to "," (*Converts comma-delimited string to a list*) Set next text frame of thisFrame to nextFrame Set nextId to item (i + 1) of theList as number Set thisId to item i of theList as number Repeat with i from 1 to ((length of theList) - 1) (*Gets list of text frames in document label to rethread broken text threads*)Įrror "Document does not have information in label" The following script is then used to re-thread the “broken” frames. Note: Add the myBreakFrames handler from above to complete the script. Set AppleScript's text item delimiters to "" Set AppleScript's text item delimiters to ", " (*listToText handler converts a list to a comma-delimited string*) Set procList to my myBreakFrames(myObjectList) If (count myObjectList) is greater than 0 then Set isLinked to (next text frame of myObject is not nothing or previous text frame of myObject is not nothing) Set myObject to item 1 of parent text frames of item i of mySelection If class of item i of mySelection is not text frame then If class of item i of mySelection is not in myTextObjects thenĮrror ("No text items or frames selected") Repeat with i from 1 to (count mySelection) ![]() Rethread Test set linkList to Įrror "Requires document with text frame selection" To demonstrate, given an id list, the following code structure could be used. Parsing a list such as this, the frames could be rethreaded by setting the next text frame property for each item in the list to the next. (*Partial listing shows line of code added to repeat loop that saves the item id to a list*) The one I came up with was to modify the BreakFrames script to preserve the ids of the duplicated frames in a list.Ī small change to the script’s myBreakFrames handler might be all that would be needed. I am sure there are several solutions for this. ![]() RETHREADING BROKEN THREADSĪ recent issue posted in the InDesign Forum sought a solution for re-threading text frames which had been broken with the BreakFrames script. The handler first duplicates the frame, then it deletes the text from the original frame and then deletes the original frame itself. Interesting is the way the threads are broken. If at least one text frame or item is in the selection list, it passes the list to the BreakFrames handler which does the work. It first checks to make sure there are text frames or text items selected. In a nutshell, it is designed to break the thread between selected text frames. That’s a wrap! Check out more tutorials that are easy to wrap your head around or go ahead and start downloading images for your next project.One of the great scripts provided with InDesign is BreakFrame. Once you’re happy with the final product, try out some mockups to see your design in action. If you want to move or resize the text or the text box, go for it! The text will still wrap around the image while you experiment with placement. One of the great things about this technique is that you don’t have to be afraid to move your text. This will adjust both the outline and the placement of the text around it. However, if you use this option and you aren’t happy with the outline, you can always adjust the edges manually.Ĭlick on the Direct Selection Tool (or just hit “ A” on your keyboard), then click and drag on any of the blue dots along the shape’s outline. The “Detect Edges” option is great for this tutorial because the edges of the macaron are easy for InDesign to identify. To adjust the amount of space between the text and the image outline, toggle the “ Top Offset” button. With the macaron image still selected, click on the drop-down menu under “ Contour Options” and select “ Detect Edges.” Make sure that the image is selected ( not the text) and select the “ Wrap around object shape” on the Text Wrap panel. Go to Window > Text Wrap to view the text wrap panel. Access the best video tips, design hacks, and deals straight to your inbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |