Linked text frame in enumeration

in one document there are many embedded text frame (object style applied = "myObjSty1")
I want to write increasing numbers
I tried to write but did not
Can you help me in this regard
Thank you in advance
var sNo = 1;
var doc = app.activeDocument; 
app.findGrepPreferences = app.changeGrepPreferences = null; 
app.findGrepPreferences.findWhat = "~a"; 
var found = doc.findGrep(); 
for(var i =found.length-1;i>=0;i--)
if(found[i].allPageItems[0].appliedObjectStyle == myObjSty1)
     found[i].texts[0].select();
     app.changeGrepPreferences.changeTo = (++sNo);
     app.selection[0].changeGrep();

Hi Guys,
although this seems to be answered a idea for a nonscripting way:
1. Create a paragraph style with autonumbering in a separate textframe with Autosize > width only.
2. Insert your textframe with the numbers
3. Write your text, add or delete some numbers, half way done
4. You will maybe discover a problem, that is shown in my screenshot. Sometimes the textframes and the followed character are overlapping. I think this is a bug.
5. Solution: Create a shortcut for "Recompose all stories immediately". After refreshing the document everything is fine, so no script needed
–Kai

Similar Messages

  • How to link text frames in Pages 5.2?

    How to link text frames in Pages 5.2?

    The correct term in Pages is Text Boxes, and true linking is not implemented in v5.2. You can Unite, Intersect, Subtract, and Exclude multiple Text Boxes via the Arrange panel. These attributes only appear when two or more Text Boxes are selected. Also, on the Arrange menu, you will need Object Placement set to Move with Text, and the Text Wrap set to None for more accurate positioning.
    In the following example, there was initially a Text Box with overflowing text that was duplicated. With both Text Boxes selected and aligned, I could then use the Unite feature from the Arrange panel. This allowed the text to flow into the second box. Selecting text in one box and dragging upwards continues the text selection between both boxes. Hoefler italic applied in one box is applied to both. Appropriately placed, another trip to the Arrange panel to enable Text Wrap around and text fit adjustments.

  • Selection text frame in linked text frame remove

    I chose in the text frame the linked text frames
    get out of text and I want to delete a text frame
    Is it possible that a command letter
    same thing selecting the external can

    Ok. Try now,
    var doc = app.activeDocument;  
    app.findGrepPreferences = app.changeGrepPreferences = null;  
    app.findGrepPreferences.findWhat = "~a";  
    var found = app.selection[0].findGrep();  
    for(var i =found.length-1;i>=0;i--)  
            var ip = found[i].insertionPoints[0];  
            if(found[i].allPageItems[0] instanceof TextFrame) 
                    var cont = found[i].allPageItems[0].texts[0].duplicate(LocationOptions.AFTER,ip);  
                    found[i].remove();  
    Regards,
    Chinna

  • Lining up text in linking text frames

    I've inherited a document design from an agency that my client sometimes uses - the client can't get their hands on the original files so I've recreated from a PDF.  I can't replicate how they make text line up across a page through linking text frames.
    The majority of their text frames have VertJustification set to Bottom, so I'm setting that as Default for my text frames.  But when I put dummy text in to my frames, I get very bad alignment of lines - especially at the top - when there is a different number of paras in each frame.
    Design agency PDF http://dl.dropbox.com/u/4460087/designagencytext.png
    My InDesign setup http://dl.dropbox.com/u/4460087/mytextsetup.png
    Current text
    9pt text
    14pt leading
    2mm (5.9pt) space after each para
    Given their text set up - especially the 2mm space after each para - they must be doing some adjustment and balancing after the text is added.  I'm just not sure how.
    Any clues??

    Assumption simply based on the fact that they seem to line up more often at the bottom through 80 pages of this stuff rather than at the top.
    But I think you've hit the nail on the head for me.  Setting my frames VertJust to 'Justify' helps me do replicate their style quite easily.
    And agreed, I also think the visual distraction of lines not lining up across columns is worse than having columns line up at the bottom.
    Thanks for the help.

  • Select all Linked Text Frames

    Dear All,
    My Request:
    1. Is it possible to select all linked text frames of my selecting text frame (Please refer attachment)
    2. Suppose If we select all text frames, is it possible to fix height for all text frames like as 3p or 4p etc....
    Trying script for select all linked text frames:
    if (app.selection[0].nextTextFrame == null)
       if (app.selection[0].previousTextFrame != null)
            alert("pass")
            app.select(previousTextFrame.parent) && app.select(nextTextFrame.parent) && app.select(startTextFrame.parent)
    Could you anyone give solution for my request.
    Thanks in advance
    Beginner

    Hi All,
    If I select any text frame, I need to select all linked text frames of selecting text frame.
    Please can anyone help me...
    Please refer the above screenshot for your reference.
    Trying script:
    if (app.selection[0].nextTextFrame == null)
       if (app.selection[0].previousTextFrame != null)
          myParagraphs = app.selection[0].parentStory.paragraphs;
          for (j=0;j<myParagraphs.length;j++)
            myParentTF = myParagraphs[j].parentTextFrames[0].contents
            alert(myParentTF)
    Output i needed:
    Thanks in advance
    BEGINNER

  • How to create a 'clone' linked text frame

    I have a large document, and the page numbering is not in a straight manner, as there are blank pages, which must be ignored for numbering. The blank pages are needed to make it easier for the printer, some pages need to be one-sided, others need to be two-sided.
    The numbering of the pages need to be done manually, or else I have to assign every page a section start, and for printing purposes this is kind of risky (page 1 is not really page 1 for instance...)
    OK, so far so good, I also need to create a table of contents, and check the document, and I was wondering if I could create a larger 'copy' of my manual page number, next to the page. At the moment I need to zoom in or select the frame and use apple-y to check the number.
    I create a slug area, I would like to put a larger textframe with the number in a larger corps in it, but it needs to 'link' to the original smaller text. Is this something that could be done by a utility or another way? It is not something I have to do every day, but I was just wondering if a kind of active 'clone' was possible. The 'copy' needs to be actively linked to the other textframe, every change must be implemented, but on a document page, not through a master page.
    Or else a page numbering scheme like 1,3,5,7 of 'ignore blank pages' would be appreciated

    That's a really bizarre way to number pages. Make sure you specify this to the printers, as a note to them. It's just not a normal way to number pages and printers would appreciate a heads up on it.
    There is no way to automate it as such. It would have to be manually updated when pages are added or moved around.
    You will still need two Master Pages
    Create an empty text frame on the Master Page on both spreads, make sure they are linked.
    Create a text file with sequential numbering from 1 - whatever the final page number is.  (excel can do this quite easily).
    Place the text file into the Main Pages at the starting page.
    You will then need to apply the Master Page without that text frame to every page that does not need a page number.
    You can do this easily by holding down Control (might be CMD on Mac) and then selecting the pages that don't require page numbers - then use the Apply Master Pages and select the master page to apply to those pages.

  • How to insert, merge linked text frames into existing long linked frame story?

    I have a book with a single story, many linked frames/pages. The index takes 4 pages in the last part of the book, but not the final pages. I have regenerated the index and it is 4 pages of linked frames in a separate story in extra pages I generated at the end of the book. I selected the new index pages from the pages panel and moved them to the proper location in the book. I want to delete the old index & pages, but that still leaves me with two stories with the main story frames jumping around the index story frames. I want the index to be part of the main story so that if the text expands the index will move.
    In short, insert and merge a story and its associated text frames in the middle of another story.
    My move pages approach got it in the right location, but it will not float if the page count changes.
    The only way I can see to do this is go back to my new index, select it all in the story editor, copy it, go to story editor on the original story, and paste in the proper location. This works, but it seems as if there should be a way of also doing it with frames, in ports, out ports, etc.

    I must be unclear on the concept. I moved my new index into the existing story between the two desired pages. This shows the original story on the left with the text threads going around the inserted Index story:
    Now I click the outport of the text frame on the left and alt click into the Index frame. That overwrites the contents of Index.
    Not what I want. I actually want to split the text as well, and just thread thru the index frames and then continue with the original story. I did the above as a test case. For my actual problem, copying the index story in story mode, and pasting it over the appropriate text in the original story solved my problem.

  • Selection tool won't select swatches or link text frames?

    My selection tool won't select swatch colours and most of the time it is very difficult to link text boxes.
    Am I doing something wrong?

    All files, or just this one?
    Have you trashed your prefs? see Replace Your Preferences

  • Linking text frames with script label array in vbs

    Here's what I'm using
    TextFrameStr = "name1,name2,name3,name4"
    TextFrameArray = split(TextFrameStr, ",")
    'On Error Resume Next
    For i = 0 to Ubound(TextFrameArray)
    myDocument.TextFrames.item(TextFrameArray(i)).nextTextFrame = myDocument.TextFrames.item(TextFrameArray(i + 1))
    Next
    I keep getting the the 'Requested member does not exist' message.
    itemByName seems to not work as well.
    Its probably someting quite silly!
    Thanks for help inadvance

    Still not working unfortunately. I have added the names into the layers palatte.
    The code below produces
    "Object doesn't support this property or method"
    Set myInDesignServer = CreateObject("InDesignServer.Application.CS5")
    Set myDocument = myInDesignServer.Open("C:\test.indd")
    TextFrameStr = "name1,name2,name3,name4"
    TextFrameArray = split(TextFrameStr, ",")
    'On Error Resume Next
    For i = 0 to Ubound(TextFrameArray) - 1
    myDocument.pageItems.itemByName(TextFrameArray(i)).nextTextFrame = myDocument.pageItems.itemByName(TextFrameArray(i + 1))
    Next
    myDocument.Save "C:\test.indd"
    myDocument.Close
    many thanks in adavnce for any help

  • Hard return paragraph breaks at top of text frames

    I'm learning how to do book layouts in InDesign CS4 and I have a problem I can't figure out how to solve. I'm autoflowing huge chunks of pasted text into linked text frames and when a paragraph breaks (with a double hard return) at the same place as a new page/column, there is a blank line on the top of the text frame like so:
    Is there a way to automatically make that paragraph break line go away when it comes at the top of a new text frame? My document is 400+ pages with many, many paragraphs. I don't want to get rid of the hard return spaces between all of them, just the ones that come at the top of text frames.

    To expand slightly, space before and after are ignored at the top of a column or frame, but the empty paragraph is not.
    You might want to try out the "Find/Change by List" sample script which fixes multiple returns along with leading and trailing whitespace and double space after a period (among other common problems). It's really just a chained set of Find/Change operations that can speed up the cleanup of new text.

  • Why States don't work on Tablet view for text frames over background image?

    I have Macbook Pro with Top config on top S/W everything updated.
    Using Muse.
    Tablet view site.
    Simple text frames buttons with states over a full width background image - DON'T WORK!
    The text frame buttons are in TOP layer.
    Visible but do not respond to to any touch. UNLESS I delete the background image.
    Can't figure it out for days.
    Please help.
    Thanks
    Eli @

    TO MUSE STAFF!!!!
    I Found a major bug that needs to be fixed:
    In Tablet view:
    A linked text frame or state button has to be in the top layer to respond to states.
    If a composition menu is opening up and covering the button when triggered - THE BUTTON WILL NOT RESPOND EVEN IF THE COMPOSITION IS CLOSED!!!
    Only if the button is ARRANGED ABOVE the composition in the layer and becomes the absolute TOP OBJECT in the layer - ONLY THEN it will respond.
    PLEASE LET ME KNOW IF YOU GOT IT.
    I have tested it on a few projects and the bug is consistent.
    [email protected]
    Thanks for fixing it in the near future
    Eli

  • How do I apply style within a text frame linked object

    I'm selecting the text frame in the object I want to apply an object style
    A script can be written
    within a text frame the linked object (selected text frame)
    how object style is applied

    Hi
    All you need is
    app.selection[0].appliedObjectStyle = app.activeDocument.objectStyles.itemByName ("Trevors Object Style");
    The below snippet will apply the style to all the anchored objects in the selection or document
    var doc = app.properties.activeDocument,
        myOnjectStyle = doc.objectStyles.itemByName ("Trevors Object Style"),
        myObjects, l;
    if (!myOnjectStyle.isValid) {
        alert ("Either add an Object Style Called:\nTrevors Object Style\nOr Make Significant Changes to The Script");
        quit ();
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.findWhat = "^a";
    myObjects = (app.selection && app.selection[0]).findText () || doc.findText ();
    l = myObjects.length;
    while(l--) myObjects[l].textFrames[0].appliedObjectStyle = myOnjectStyle;
    HTH
    Trevor

  • Dynamic Text box with linking to frames

    I have a problem. I've tried everything I can think of and what I have Googled, but nothing has helped. I have a scrolling dynamic text box and I need some words in that text box to link to frames, like buttons (Not a URL). This is the file and the frame I'm on is "conflictNorthernPlains"     https://dl.dropbox.com/u/72608572/civilWarEra7.zip
    Thanks

    use:
    var tf:TextField = new TextField();
    addChild(tf);
    tf.htmlText = "<a href='event:frame1'>link to  frame1</a><br/>";
    tf.htmlText += "<a href='event:frame2'>link to frame2</a><br/>";
    tf.addEventListener(TextEvent.LINK, tfF);
    function tfF(e:TextEvent):void{
    gotoAndStop(e.text);
    p.s.  please mark helpful/correct responses, if there are any.

  • [CS3] How to cut/copy/paste text frame without link

    Hi All,
    Please tell me how I will cut/copy and paste text frame with ignoring or removing links of text frame.
    After copying, the original text frame must contain its link but the newly create text frame should contain any link.
    Thanks,
    Aman Alam

    hey thanks for responding. pasting through text edit works, but if i just copy from the quote block and paste in the top of the message body, it keeps the quote formatting. if i Paste as Quotation, then it double-quotes it--two side bars...
    i guess part of the problem that i just realized, too, is that Mail must convert a message to rich text if you choose to quote text in a reply. because otherwise it could not possibly color the text, right? when i paste out of Mail and into Text Edit, the text color i saw in mail is preserved, meaning the text itself must contain formatting data (rich text).
    is there no way to reply to a mail and include the previous message as a quote without switching to rich text?

  • Some pages use master text frame, others don't. Fix?

    It turns out in my document, some of my pages have a master text frame and others don't. Many don't. It must be the way I created the frames, accidentally creating independent frames. Is there a fool proof way not to accieentally create independent frames and is there a good way to make sure all these pages with independent frames are turned back into master text frames?
    What I can do is delete the independent frame, then link the previous frame to the inside of the master text frame (I think I used to drop the link on a ruler too often and that creates an independent frame that is in most cases indistinguishable from a master text frame). This is tedious to do for the entire document. Is there an easier way?

    It sounds like you understand what happened. Clicking the place gun cusror on any type of guide will ignore your master frames. Overriding a master text frame before placing the text and Shift-clicking in the overridden frame will also ignore the master frames on subsequent pages.
    The bes thing you can do is keep your eyse open to watch the shape of the cursor. If ID is going to use an existing frame the cursor will be surrounded by parentheses and a new frame will use a cursor with a square upper left corner. You should also develop the habit of clicking in empty areas away from guides if you are using existing frames -- you don't need to click at the top of these frames.
    It's also possible that you did everything correctly and you are working in a facing pages file and at some point added or deleted a single page somewhere other than the end. That would cause all following pages to switch sides and master objects would be reapplied behind any overridden frames.
    There is no easy way to deal with extra frames. If they are not causing a problem you may be able to simply ignore them.

Maybe you are looking for