CS3 - Auto Anchored objects

Hi all,
I would like to speed up my workflow enormously. I have a very repetitive thing that I need to speed up somehow...
I receive supplied text that requires formatting. I have just about everything automated except inserting graphics into certain locations. I currently insert an object as an anchored object one by one wherever it needs to be put..
The things is, all the graphic objects are identical (the exact same file), and they appear hundreds of time throughout the document.
The objects are to all behave exactly the same way so a style could be set up - it's just the matter of placing the object hundreds of times every time I get new text to update the file with. So at the moment, I am spending way way way too much time individually placing each object one by one.
I'm not a highly experienced ID user, so I'm hoping I'm just missing something here. I've scoured tutorials and help and the web to no avail. Hence my post here.
Currently, they put the text code "grphc" where they want the little picture in the text supplied to me. I then do a search for "grphc" in the find function. It finds it, I then select this code and place the inline object. I then go back to the find function to show me the next code. It takes me straight to it, I then repeat the process of selecting the text code, place the object, find the next code, select the code, place the object, find the next code, select the text, place the object, find the next code, select it, place the thing, find the next, select it, place it... and so on and so on till my brain hurts through a very very repetitive operation. It hurts!.
Please help me automate this very time consuming and brain numbing repetitive action...
Like I said, I'm not a heavily experienced user of InDesign, so I'm hoping that I am simply missing something. (I can only hope)
I'm hoping that a very easy, almost 'one click' fix can replace the special code with this little grpahic.
I mean, I can find all occurrences of a given text in the document and replace it all in one hit with some other text, but it seems to not allow to replace text with a graphic.
please help. even if the answer is in front of my face & cannot see it..
Thanks very much in advance.
Graeme.

WOW!!!,
Thankyou Dave, that works a treat.
I must admit though, I am surprised that with the amount of power ID has with this Find/Replace function that it doesn't have the ability to find and replace with a graphic.
Maybe I should put a wish list to ID to add this find text and replace with an object feature...
Graeme.

Similar Messages

  • [JS][CS3-CS5] anchored objects/inline back to text

    g'day there.
    been handed a reformatting job where the client has supplied text in word with additional textframes (they have made callouts next to their body text), meaning when the text is imported into indesign, the text has hundreds of anchored objects containing the callouts. is it possible to take these anchored objects and convert them back into the actual main textframe? ATM, the only way to do this would be to cut and paste.
    i have done a search on the forums and elsewhere to remedy this and there are plenty of threads advising on how to take text and make anchored objects out of them, but what i want to do is the reverse.
    thank you.
    colly

    i feel strange answering my own question, but i stumbled across this older applescript and it seemed to do the trick, so thought i'd put it out there.
    tell application "InDesign CS5"
        tell document 1
          set thetextframes to text frames
          repeat with aframe in thetextframes
             set theCount to count of (text frames of aframe)
             tell aframe
                 repeat with i from theCount to 1 by -1
                   set boxContents to paragraphs of text frame i of aframe as string
                   set contents of first insertion point of parent of text frame i to boxContents
                   delete text frame i of aframe
                 end repeat
             end tell
          end repeat
       end tell
    end tell
    full credit to peter kincaid who wrote the script. all i did to make it work was just to tell the application CS5 rather than CS1 which was in the original script.
    the actual site i found the script at was:
    http://olivier.berquin.free.fr/indesign/indesign_cs1.html

  • [JS CS3] Releasing Anchored Objects

    Hello,
    The following script places a libray item as an anchored object...
    var myDoc = app.documents[0];
    var myFrame = app.documents[0].textFrames.item("myTarget");
    var myInsertPoint=myFrame.parentStory.paragraphs.item(0).insertionPoints.item(0)
    var myLibraryItem=app.libraries[0].assets[0]; myFrame=myLibraryItem.placeAsset(myInsertPoint);
    with(myFrame[0].anchoredObjectSettings){
    anchoredPosition = AnchorPosition.anchored;
    anchorPoint = AnchorPoint.topLeftAnchor;
    horizontalReferencePoint = AnchoredRelativeTo.anchorLocation;
    horizontalAlignment = HorizontalAlignment.leftAlign;
    anchorXoffset = 0;
    anchorYoffset = 0;
    How do I now release my anchored library item and then send it behind the text in the text frame "myTarget" ?
    Thanks
    Simon Kemp

    Thanks Harbs, this has made things simpler.
    I have heard your name mentioned several times today in the InDesign Secrets podcast (and Dave's too).
    I am almost there with the script (my scripting is clumsy but I can usually get things to work mainly with help from this forum.
    My last problem is that I am re-applying geometric bounds to the released anchored object as it is still being referenced as myAnchoredFrame.
    Is it possible to release ALL the anchored objects in one go? Or how do I dump the reference to myAnchoredFrame once it has been released?
    var myTextFrame = app.documents[0].textFrames.item("myTarget");
    var myParagraphs = myTextFrame.paragraphs
    for (var i = 0; i <= myParagraphs.length-1; i++) {
    var nLines = myParagraphs.item(i).lines.length;
    var myAnchoredFrame = myTextFrame.paragraphs.item(i).insertionPoints.item(0).textFrames.add();
    var myHeight = nLines*myParagraphs[i].leading*.353
    myAnchoredFrame.geometricBounds = [0, 0, myHeight, (myTextFrame.geometricBounds[3]-myTextFrame.geometricBounds[1])];
    myAnchoredFrame.fillColor = "Gradient";
    myAnchoredFrame.gradientFillAngle = 90;
    myTextFrame.texts.item(0).recompose;
    with(myAnchoredFrame.anchoredObjectSettings){
    anchoredPosition = AnchorPosition.anchored;
    anchorPoint = AnchorPoint.topLeftAnchor;
    horizontalReferencePoint = AnchoredRelativeTo.anchorLocation;
    horizontalAlignment = HorizontalAlignment.leftAlign;
    verticalReferencePoint = VerticallyRelativeTo.capheight;
    verticalAlignment = VerticalAlignment.topAlign;
    anchorXoffset = 0;
    anchorYoffset = -1;
    pinPosition = false
    myAnchoredFrame.anchoredObjectSettings.releaseAnchoredObject ()
    myAnchoredFrame.sendToBack();
    Thanks again
    Simon Kemp

  • Anchored objects and first line in InDesign CS3

    Hi, thanks for reading. I know that when you want an achored object at the beginning of a text block to all push away ("wrap around") the text, including the first line, you have to put it into a line before that.
    What I don't like about it, is that I then have an empty first line and everything else is pushed one line down. Now I could move the whole textbox up, to fit to the rest of my layout, but that's not the way one should work in InDesign. Is there a way to get around the first line?

    T-
    Select the anchored object and put text wrap on it. Then select the anchored object and go to Object/Anchored Object/Options. Select Position: Inline and set the Y Offset to the negative number that aligns your text where you want it.

  • [CS3] GREP-Problem with Anchored Objects

    Hi,
    I've the following problem:
    Lines beginning with a, b, c etc. should be formatted equally, so I use the following GREP:
    Search:
    ^([a-z])(\.??)([ \t])
    Replace:
    $1.\t
    Now there are some abc lines, which begin with an anchored object, so I tried:
    Search:
    ^(~a*?[a-z])(\.??)([ \t])
    Replace:
    $1.\t
    But with this, the anchored object is deleted. Is this a bug or am I doing something wrong?
    Thanks
    Tobias

    That's a known bug -- Dave Saunders discovered it, to his surprise, I might add. There seems to be no reason for it.

  • CS4 text wrap over anchored object

    Every time I place an anchored object (doesn't matter if it's graphic or text frame) and apply text wrap, Indesign freezes permanently and only solution is killing it via task manager.
    I opened CS3 file with anchored objects w/ txt wrap and the same freeze happens when trying to move, delete or apply different wrap settings to object.
    It never happened in previous version of ID on my machine.
    Any solution to this problem? Thanks.
    My PC conf.:
    AMD x2 2.7
    2GB RAM
    Vista 32bit

    The first thing to try is replacing your preferences.
    http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f86173837510 01ea8cb3f-6d1e.html

  • Anchored objects behind text

    Is there a way to make an anchored box sit behind text? I have a section title with section numbers. I would like to place a piece of art behind all the section numbers. The box always comes out on top. I can create a new paragraph style with autonumbering for the section into it, place it over the art, group it, and then anchor it. The only problem is, now the section numbers won't show up in the running head. Any ideas? I'm using CS3. I used to be able to do this in FrameMaker. Thanks.

    Can't be done with anchored objects - sorry.
    But you can convert your text to a table - and that can put a background in there.
    OR
    Use Paragraph Rules to highlight a line of text or a pargraph of text
    http://www.theindesigner.com/blog/episode-49-paragraph-rules-rule

  • My anchored objects dont display after CS5 upgrade - help?

    Hi,
    We've just upgraded to CS5 from CS3.
    I publish educational books, which contain a lot of object styles and anchored objects.
    I have just opend a book im working on in CS5 and have had problems with both anchored objects not displaying and object styles changing. The first is more pressing.
    The problem arises where I have an anchored object inside another anchored object, and they use custom positioning.
    For example. I have a pullout box that contains text and an image. The image is anchored inside the pullout box and the pullout box is anchored to the main body of text.
    The images are no longer displaying. I can select their frames, and if i change the image positioning to inline the images display fine, but when it is set to custom (which they need to be) I can no longer see the image.
    Is anyone able to help with this, its a major problem as i am woking with hundreds of images here.
    Thanks

    My usual advice is that with a project this large, it's best to finish it in the same version it was started in. Even a small change in the text engine can effect things like this and there were changes from CS3 to CS4 and again to CS5, but I'm not really sure what's happening in your case.
    Bob

  • Need anchored objects to be behind text

    Anchored objects have aways had lot of shortcomings for my workflow. One shortcoming I'd really like to see fixed in future versions of ID is the inability to choose for the anchored object to appear behind the text it is anchored with. Here are just a few uses that I can think of that would be helpful in my workflow:
    Creating numbered lists that have specialty art behind the numbers. To do this currently, you have to either do manual numbering and group it with each object and anchor the object with the number into the line of text or you have to keep the auto-number list and the objects for the numbers separate and manually reposition the number objects whenever the text reflows.
    Creating paragraph backgrounds that flow with the paragraph. Right now about the only way to do that is using the paragraph rules or tables which have severe formatting limitations (no rounded corners, ignore text wrap, etc.), and the rules are difficult to resize. If you could create the background as a ID object or placed art and anchor it to the beginning or end of the paragraph, you could manually resize it to the size of the paragraph and it will flow with the paragraph whereever you need it (this currently will not work unless the object can be made transparent to the text using an effect.
    Captioning anchored images could actually overlap the image if and where necessary. Right now, if you want captions to appear on top of an anchored image, you have to group the caption with the image before anchoring it into the text flow.
    There are workarounds obviously for these tasks (as I've indicated), but by their nature workarounds are time consuming. I'm always looking for ways to automate tasks and save time in ID. Having the option to make an object appear behind the text it is anchored with would be a tremendous time saver.
    Anyone else see a use for stacking order option with anchored objects?

    @Obi-wan – you say: "Despite the fact that, like all anchored boxes, it is foreground, text color is truly visible with no effect on the blue block !!"
    With anchoring "Above Line" the anchored objects are really stacked behind. At least that stacking order is true for all characters after the anchor character. Using a different anchoring method will always yield in anchored objects stacked above (foreground).
    Doing some tricks with the effects panel on the anchored object is alright, so that all the other text, that is stacked below will showing through, but you should be aware, that these effects will change the game when it comes to color separation for print workflows.
    Separation preview with all channels visible CMYK:
    Separation preview with [Black] not visible CMY:
    As you can see, the usually overprinting color [Black] on the text below is left out. When exporting a PDF, I think nearly no prepress tool in the world will find an automatic way to change this because of the stacking order of the elements.
    If the green rectangle would be stacked behind the text like in anchoring "Above Line" we will see the following with separation preview CMYK:
    Turn off K in the separation preview will give a surprising image:
    All black text, that comes after the anchor character will overprint, all text before will not. And that "will not" is definitive. If we look at the objects in Acrobat Pro after exporting to PDF, we will see that not overprinting characters "ut endis" in my little screenshot here are below the green rectangle, all characters following after the anchor are above the green rectangle.
    Here a screen shot from Acrobat Pro that will reveal the stacking order a bit (the transparent background of the page is shown as gray; an option in Acrobat Pro's view preferences):
    So in the end, "ut endis" will be printed with a total amount of color:
    0 Cyan
    0 Magenta
    0 Yellow
    100 Black
    Sum: 100%
    The "black" text following due to overprinting* (EDIT) will be printed with:
    75 Cyan
    5 Magenta
    100 Yellow
    100 Black
    Sum: 280%
    * AND of stacking order of course!
    All other black text will overprint as well, but there is no effect for the green rectangle because the text is stacked behind the rectangle.
    Uwe

  • Anchored Objects Disappear When Page Moved

    I'm working in InDesign CS2 in XP environment. I duplicated a page that contains anchored objects. It was page one; the duplicate page is now page 5. I modified the duplicate page 5. Now I want the altered page 5 moved into page 1 position.
    When I move the pages either by dragging or by right clicking on the page icon and using the Move Page command, all anchored objects on the page disappear. I also cannot release the anchored objects because the release command is disabled when I select an object with the selection tool.
    Any suggestions?

    I got your file, and after looking at it, it's probably better not to post it publicly. For the lurkers, it's a draft government document, not yet ready for release.
    Anyway, I took a look at the file, first in CS2 where it was created, and then in CS3 to see if it would behave differently.
    First, the anchored objects aren't really gone, just temporarily invisible. if you select the objects and move the page, you can still see the selection outline. It's some sort of screen display bug/glitch, I think, in CS2. Exporting to .inx didn't fix it, so I think it's not corruption, and it doesn't happen at all in CS3.
    The bad news is I have no way to explain what the problem is, or how to prevent it from happening. The good news is I found a way to make them reappear! Select the text frame with the selection tool, and change its stacking order. I tried Ctrl + Shift + [ to send to the back, and Ctrl + ] to bring forward, and both seemed to work, though it may make a difference where in the order they start out. If one attempt doesn't work, try again, or send all the way back or forward.
    For what it's worth, this is only a display problem. Even when the anchored objects are not visible on the screen they show in both printed and exported PDF.
    Peter

  • Anchor Objects that go haywire

    Hi - we are a small studio that use InDesign CS3 on mainly Intel Mac's and two iMacs (not Intel). Most of our books are educational so they often use icons. To speed up corrections further down the line (when text might be inserted or deleted) we set these up as anchored objects and have even gone so far as to make object styles for the anchored objects offsets. Most of the time this works really well.
    The problem we are experiencing now is that while doing corrections to a particularly text heavy academic book (A4, 2 columns) the icons have started to jump all over the place.
    As far as I can make out it all started happening when a large heading jumped into the next text frame. The anchored objects all moved down as they should. But when the heading was corrected and brought back into it's box, the anchored icons did not go back to be alongside the text they were with before.
    It's almost like the zero point has moved or something. Does anyone know of a global way to fix this? Otherwise we have to go and select each anchored object and clear the overrides. (Did I mention it has a lot of icons!)
    Sorry for the long explanation, I hope you can make sense of this and have a quick answer)
    Eloise

    Daniel,
    You can always use a copy of the T shirt outline as a Clipping Path for an Object>Clipping Mask.
    Otherwise, it depends on the actual artwork; in some cases you may use one of the Pathfinders.
    If you have CS5, you should also be able to use Draw Inside.
    Edit: Hi Monika.

  • New technique to place multiple anchored objects in InDesign story

    Hello,
    For a while I have been trying to figure out how to insert multiple anchored objects into an Indesign story. As far as I can tell, you cannot copy multiple objects that have already been placed in a document (such as a multi-page pdf) into an InDesign story, but must copy and paste them one-by-one into the story. This is a problem for a project I am working on where I want to have a large number of 340x52 pt pdfs to flow throughout a document in a master text frame interspersed with text.
    I have now found a solution for this issue that I thought I would share in case it would be helpful for anyone. It utilizes Automator actions for Mac OS X and Microsoft Word 2011 [2008 may work also, but I don't have a copy of that to test]; I am not good with scripting but perhaps similar solutions could be found for other systems and programs.
    1. If you want to place a multipage pdf within a text frame, first it into individual files for each page (with Acrobat Pro or pdftk or something similiar).
    2. Create an Automator service or program with the action "Create New Word Document". You can also use another automator action to save the document, or save it manually (to change the filename). In the finder, select the items you want, then run the service or drag them into the Automator program you have created.
    3. Place the word document into your InDesign story. Your items will now be anchored objects ordered in your text frame as they were in the finder.
    Please let me know if this is helpful or if anyone has suggestions for doing this process is a more efficient way. I am not sure, but it may be the case that this approach would only work on Macs, as I gather from this thread.

    I might note that I am using InDesign CS 5, and importing from a document stored in docx format.

  • Get textFrame by label returns null and anchored objects

    I have the following two functions:
    function getByLabel(page, label)
        for(var i=0; i < page.allPageItems.length; i++)
            if( page.allPageItems[i].label == label )
                return page.allPageItems[i];
    and
    Object.prototype.findItems = function(/*obj*/props)
        if( !('everyItem' in this) )
            throw new Error("Error: " + this + " is not a collection.");
        var ret = this.everyItem().getElements(),
            i = ret.length,
            e, p;
        while( i-- && e=ret[i] )
            for( p in props )
                if( (p in e) && e[p]===props[p] ) continue;
                ret.splice(i,1);
        return ret;
    In my page structure, I got one main text frame (the content area) and two vertical text fromes on the sides of the page. There is also a small box textframe on top of the page. All these textboxes EXCEPT the main text frame are ALL "ANCHORED objects". I had to make them anchored objects, eitherwise after importing data, the boxes would jump around. (Example, the small box textframe that is on the top would get moved to the content area textframe etc). Not sure if using anchored objects is the proper way to fix this.
    When I try to get the small box text frame, it does not work using the findItems (returns null) but it works fine with the getByLabel method. Why is that?
    The calling syntax is:
    for( i=0 ; i < doc.pages.length ; ++i )
            var page = doc.pages.item(i);
            var textFrame = getByLabel(page, 'lblSection' ); //This works
            //   var textFrame = page.textFrames.findItems({ label:  'lblSection' })[0]; This does not work, returns null
            if( textFrame != null )
                textFrame.parentStory.contents = "";

    (function () {
        // Per the InDesign Scripting Guide, app.activeScript is only
        // valid when a script is directly executed from InDesign, not
        // from the ESTK, so a try/catch block is recommended to handle
        // it.
        var d;
        try {
            d = app.activeScript.parent.parent.fsName;
        } catch (e) {
            d = Folder.appPackage.parent.fsName+"/Scripts";
            return d;

  • Text wrap in anchored objects

    In order to place text boxes relative to the spine, I have placed them as anchored objects.
    But now, these text frames do not respect text wrap setting from objects outside of the anchored object.
    I have made sure that ignore text wrap in text frame options is not checked.
    Is this a bug?
    And does anyone know a workaround?

    In order to make my design indifferent to later added pages, I have placed all text frames and graphic placeholders as anchored objects, positioning them relative to spine.
    When I now place an object on top of such an anchored text frame, text wrap is not working, even if i overide the master page item.
    The only work around I have found is to copy the respective text frame and make the original master page item unvisible.
    Is there not another way to to this?
    For me, the best would be another way of placing text and graphic frames relative to spine.
    Bus as soon as one overrides the master page item, the object is not placed anymore relative to spine if another page is inserted.

  • Is it possible to have an anchored object linked to a paragraph style?

    I want to link an anchored object to a paragraph style, so that whenever a paragraph that has a particular style is created, an anchored object is created at the same time. The particular application is to label the associate text with the anchored object. is this possible?

    Here an example for a GREP search/replace:
    Search for the beginning of every paragraph + the first character:
    ^(.)
    Replace with the formatted contents of the clipboard + the found character:
    ~C$1
    Uwe

Maybe you are looking for