Anchor object

Is it possible to anchor an object on a different spread from the text reference? That seems to be a restriction in practice, but I can't find mention of it or a way round it (in CS5.5).

Thanks. I'm laying out a book for print, but want also the ability to output it well to ePub (which I'm new to). An illustration takes up most of one page, and for the ePub I want it to follow the relevant paragraph. My understanding is that I need to anchor the illustration to that point in the text to get the ePub output right, but the end of the relevant paragraph falls on another spread! 

Similar Messages

  • 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.

  • 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 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.

  • 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

  • Callouts and anchored objects - there must be a better way to do this

    I've spent a lot of time in the last six months rebuilding PDF files in InDesign. It's part of my ordinary responsibilities, but I'm doing a lot more of it for some reason. Because I'm sending the text of these rebuild documents out for translation, I like to keep all of the text in a single story. It really helps to have the text in "logical order," I think; when I'm prepping a trifold brochure, I try pretty hard to make sure that the order in which the readers will read the text is duplicated in the flow of the story throughout the ID document.
    So, I'm rebuilding a manual that has a 3-column format on lettersize paper, and it's full of callouts. Chock full of 'em. They're not pull quotes, either; each of these things has unique text. Keeping in mind that I'd like the text in these callouts to remain in the same position in the text once I've linked all the stories and exported an RTF for translation, what's the best way to handle them? What I've been doing is inserting an emptly stroked frame as an anchored object, sized and positioned to sit above the text that is supposed to be called out. When my translations come back, they're always longer than the source document, so as I crawl through the text, I resize the anchored frames to match the size and position of the newly expanded translated text, and then nudge them into place with the keyboard.
    There Has To Be a Better Way.
    There is a better way, right? I'm not actually too sure. If I want to actually fill those anchored frames with text, I can't thread them into the story. I suppose that I could just thread the callout frames and assign two RTFs for translation instead of one, but then the "logical order" of my text is thrown out the window. So, I'm down to asking myself "what's more important? reduction of formatting time or maintenance of the flow of the story?" If there's something I'm missing that would let me dodge this decision, I'd love to hear about it. The only thing I can think of would work like this:
    1) Duplicate callout text in the story with a custom swatch "Invisible"
    2) Create "CalloutText" parastyle with "Invisible" swatch and apply it to callout text
    3) Insert anchor for anchored frame immediately before the CalloutText content
    4) Send it out for translation
    5) While I'm waiting for it to come back, write a script that would (dunno if this is possible):
       a) Step through the main story looking for any instance of CalloutText
       b) Copy one continguous instance of that style to the clipboard
       c) Look back in the story for the first anchor preceeding the instance of CalloutText
       d) Fill the anchored object with the text from the clipboard (this is where I'm really clueless)
       e) Apply a new parastyle to the text in the callout
       f) Continue stepping through the story looking for further instances of CalloutText
    If this really is the only decent solution, I'll just head over to the Scripting forum for some help with d). Can any of you make other suggestions?

    In-Tools.com wrote:
    The use of Side Heads saves weeks of manual labor.
    Yup, Harbs, that is exactly what I was describing. If I use the Side Heads plugin to set up a job, will my clients get a missing plug-in warning when they open up the INDD? Will roundtripping through INX strip the plugin but leave the text in the callout? (My clients don't care if the logical flow of the story is broken; it's just me.)
    I'm just curious; seems like a pretty obvious purchase to me. I'll probably try to script a solution anyways, after I buy the plugin; that way I get to learn about handling anchored objects in scripts AND deliver the job on time!

  • Efficient, repetitive insertion of anchored objects

    I'm using InDesign 5.5 on a Mac running OS 10.8.5 if that has anything to do with this issue. My proficiency with Id is relatively low, but I've learned how to format books and have published three of my own, am trying to finish up a fourth, and have done another for a writer friend. Here's the problem I cannot seem to solve:
    At the start of every chapter I have the heading defined in a style, then a chapter graphic style, then the first paragraph of the main body in another style. I have some notes from the last time I did this a couple of years ago, and they indicate that I found a work flow that allowed me to:
    1. With a chapter graphic positioned exactly where I want, copy it. What I expected to happen this time based on my previous experience was for this to copy not only the graphic, but the anchored position information as well.
    2. Place the insertion point to the right of the next chapter heading and hit return.
    3. With the chapter graphic set as the next style, the insertion point is now sitting where I want the graphic.
    4. Paste the graphic and it's positioned where I want it.
    5. Repeat this for each chapter without too much trouble.
    But this time, two things happen that I'd like to avoid: 1) The graphic inserts with the right edge of the bounding box lined up with the centered insertion point, and 2) the text in the first paragraph is shoved down the page. I think what's happening is that the chapter graphic style is displaced so it's like I hit a return with that style active and I get two of them rather than the one I want.
    I've been able to anchor the graphics by clicking on them with the Selection tool, then option clicking on the anchor to bring up the anchored object window, which never shows above or below line. I select that, have to change from left to center, then adjust the below spacing to get the distance I want between the bottom of the graphic and the first line of text, then change the extra chapter graphic style below the graphic to the main body style, and reposition the first paragraph where it needs to start.
    Needless to say, this is going to get very old doing all that for 34 chapters, then repeat the process for a smaller graphic I'm using at every scene break, and there's a lot more of those.
    I hope I've described this so that it makes sense, and I'd appreciate knowing how to solve it. Thank in advance,
    Tosh
    P.S. Hello Peter!

    Thank you for the reply. I've taken 5 screenshots to illustrate what's happening:
    #1 is shows the text insertion point in the chapter graphic style between the chapter heading and the first paragraph:
    #2 is the result of pasting in the graphic: What I've been able to do before (at least that's what my notes day) is to have the graphic centered on the insertion point. But you can see how the insertion point has shifted to the left, and the right edge of the graphic is lined up with it.
    #3 shows application of the object style. This is a step I hadn't been doing before, and it definitely saves time not having to use the options window to set above line/center/and above values.
    #4 illustrates the extra spacing between the graphic and the first paragraph because the insertion point is in the chapter graphic style, not the style for the first paragraph. Especially confusing is that the chapter graphic style is centered, and the insertion point is justified left
    #5 shows the application of the first paragraph style to the location of the insertion point.
    This is the result I'm looking for, and as mentioned earlier, I remember having a workflow that allowed me to paste the graphic into the centered paragraph style and that's where it stayed.
    I can do this longer workflow and get what I want, but it's labor intensive and there has to be a better way.
    Tosh

  • Creating TOC: order of anchored objects

    Hey scripting experts,
    i have a question creating an automated table of contents.
    The problem is, that I am using anchored objects (text) in a text frame/story. Let's assume there is a text frame, starting with the anchor of an anchored object that contains the "headline # 1" and is placed e.g. on the top of the page. The anchor is followed by "headline #2" and "headline #3" (both simple text, no anchored object).
    When generating toc, the order of the headlines will not be read as desired. The anchored object unfortunately is not added at first, but at the end. So the generated order is: #2, #3, #1. I would prefer #1, #2, #3.
    Do you think, there might be a suitable (and scriptable) way to teach InDesign, to count an anchored object according to the position of the corresponding anchor in the text? Yes? I would be glad for any advice!
    Thank you!
    Jan

    Hi Peter,
    thank you very much for your quick and technically versatile reply! Unfortunately my answer reaches you slightly late – due to Easter/holidays (hopefully you spend them relaxed ...).
    Nevertheless i am really glad having received your hint. At the moment i am still a bloody beginner in scripting/xml-rules, but trying hard to forge ahead. Maybe aming for a specific target causes progress ... You signalized me there probably is a solution, so with your hint at the back of my mind, i will start practicing now.
    Many thanks and best regards
    Jan

  • RE: Named anchored objects

    Albert,
    In my case I was using a named anchored object to get a handle to an actual
    service object. My named object that I registered in the name service was
    an intermediary to which I did not maintain a connection. So I have not
    explicitly tested what you are asking.
    However, I too was not using a hard coded reference to the SO, and fail over
    and load balancing worked fine. The functions of fail over and load
    balancing are not done by the service object but by the name service, proxy
    and router. Since you are getting a proxy back any time you do a lookup in
    the name service I would think that fail over should work with any anchored
    object that is registered in the name service. When you do a RegisterObject
    call you will notice that one of the arguments is the session duration,
    which implies to me that fail over will be handled the same as for service
    objects.
    Load balancing adds another wrinkle. Load balancing is handled by a router.
    You must get a proxy to the router and not a proxy to an instance of the
    object that the router is doing the load balancing for. In the latter
    scenario you will be bypassing the router. If you are creating, anchoring
    and registering your objects dynamically you will not have a router so you
    will not be able to load balance! This applies even if the objects are
    instantiated within partitions that are load balanced because you will still
    be getting proxies back to a particular instance of the anchored objects.
    There are ways to accomplish load balancing between objects that you
    register yourself. However, the best solution will vary depending on the
    actual problem trying to be solved. If you would like to discuss this
    further, include a little more detail about the scenario you need to
    implement and I will give you what I know.
    BTY what I have outlined above also applies to getting references via a
    system agent.
    Sean
    Cornice Consulting, Inc.
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
    Sent: Friday, July 03, 1998 11:01 AM
    To: [email protected]
    Subject:
    Alex, David, Jez, Sean,...
    My question about both solutions (using Nameservice and agents) is:
    If I reach a remote service object using either a BindObject or an agent, do
    fail-over and load-balancing work the same way as they normally do when
    using a hard coded reference to the SO.
    Albert Dijk
    From: Sean Brown[SMTP:[email protected]]
    Reply To: [email protected]
    Sent: Thursday, June 25, 1998 6:55 AM
    To: Ananiev, Alex; [email protected]
    Subject: RE: multiple named objects with the same name and
    interface
    Alexander,
    I can not comment on the speed difference because I never tested it.
    But, I
    will say that we looked at the agent solution at a client sight
    before. I
    will give the same warning I gave them. If you go the agent direction
    you
    are now using agents for a purpose that they were not intended. Even
    though
    it technically works, as soon as you start using a piece of
    functionality in
    a way the developer did not intend it to be used you run the risk of
    forward
    compatibility problems. By this I mean, since agents were not
    originally
    intended to be used to look up service / anchored object references,
    it may
    not work in the future because it is not likely to be given
    consideration in
    any future design.
    As we all know, programmers are always stretching the bounds of the
    tools
    they use and you may have a good reason (i.e. performance). I just
    wanted to
    let you know the possible risk.
    One final note on a limitation of using system agents to obtain
    references
    to anchored objects. You can not access agents across environments.
    So, if
    you have connected environments and need to get references to services
    in
    another environment for fail-over or whatever, you will not be able to
    do it
    with agents.
    Just some thoughts!
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
    Sent: Wednesday, June 24, 1998 12:14 PM
    To: '[email protected]'
    Subject: RE: multiple named objects with the same name and interface
    David,
    The problem with dynamic binding is that in this case you have to keep
    the reference to the service object somewhere. You don't want to call
    "bindObject" every time you need to use this service object, "bind" is
    a
    time-consuming operation, even on the same partition. Keeping
    reference
    could be undesirable if your object could be moved across partitions
    (e.g. business object).
    The alternative solution is to use agents. You can create custom
    agent,
    make it a subagent of an active partition agent and use it as a
    placeholder for whatever service you need. "FindSubAgent" works much
    faster than "bindObject", we verified that and agent is "user-visible"
    by its nature.
    Alexander
    From: "Sean Brown" <[email protected]>
    Date: Wed, 24 Jun 1998 09:12:55 -0500
    Subject: RE: multiple named objects with the same name and interface
    David,
    I actually determined it through testing. In my case I did not want
    this to
    happen and was trying to determine why it was happing. It makes sense
    if
    you think about it. Forte is trying to avoid making a remote method
    invocation if it can.
    Now, for anything more complex than looking locally first and if none
    is
    found give me any remote instance you can find, you will need to do
    more
    work. Using a naming scheme like Jez suggests below works well.
    Sean
    - -----Original Message-----
    From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
    Sent: Wednesday, June 24, 1998 4:34 AM
    To: [email protected]; 'David Foote'
    Cc: [email protected]
    Subject: RE: multiple named objects with the same name and interface
    David,
    there's a mechanism used within SCAFFOLDS that allows the
    location of the 'nearest' SO when more than one is available.
    It involves registering each duplicated SO under three dynamically
    built
    names. The names include the partition, the node or the environment
    name.
    When wishing to locate the nearest SO the BO builds a SO name using
    its
    own partition and asks the name service for that.
    If there is an SO registered under that name then it must be in the
    same
    partition and all is well. No cross partition calls.
    If not, then the BO builds the name using its node and asks the name
    service for that.
    This means that if there is an SO outside the BO partition but still
    on
    the same node then this can be used. Again, relatively 'local'.
    If neither of these work then the BO has to resort to an environment
    wide search.
    It may be that this approach could be adapted / adopted; I like it's
    ingenuity.
    Cheers,
    Jez
    From: David Foote[SMTP:[email protected]]
    Reply To: David Foote
    Sent: 24 June 1998 03:17
    To: [email protected]
    Cc: [email protected]
    Subject: RE: multiple named objects with the same name and
    interface
    Sean,
    First, thank you for your response. I have wondered about this fora
    long time.
    I looked at the documentation for ObjectLocationManager and on page
    327
    of the Framework Library and AppletSupport Library Guide indescribing
    the BindObject method Forte says:
    "The name service allows more than one anchored object (from
    different
    partitions) to be registered in the name service under the same
    registration name. When you invoke the BindObject method with a
    request
    for a name that has duplicate registration entries, the BindObject
    method finds an entry corresponding to an active partition, skipping
    any
    entries that do not. If no such active partition is found, or if the
    requested name is not found in the name service registry, a
    RemoteAccessException will be raised when the BindObject method is
    invoked."
    My question is: How did you discover that in the case of duplicate
    registrations the naming service will return the local object if one
    exists? This is not apparent from the documentation I have quoted.
    Is
    it documented elsewhere? Or did you determine it empirically?
    David N. Foote,
    Consultant
    ----Original Message Follows----
    David,
    First I will start by saying that this can be done by using named
    anchored
    objects and registering them yourself in the name service. There is
    documentation on how to do this. And by default you will get mostof
    the
    behavior you desire. When you do a lookup in the name service
    (BindObject
    method) it will first look in the local partition and see if thereis
    a
    local copy and give you that copy. By anchoring the object and
    manually
    registering it in the name service you are programmatically creating
    your
    own SO without defining it as such in the development environment.
    BTW
    in
    response to your item number 1. This should be the case there as
    well.
    If
    your "mobile" object is in the same partition where the serviceobject
    he is
    calling resides, you should get a handle to the local instance ofthe
    service object.
    Here is the catch, if you make a bind object call and there is no
    local
    copy
    you will get a handle to a remote copy but you can not be sure which
    one!
    It end ups as more or less a random selection. Off the top of myhead
    and
    without going to the doc, I am pretty sure that when you register an
    anchored object you can not limit it's visibility to "User".
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href=
    "mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
    Sent: Monday, June 22, 1998 4:51 PM
    To: [email protected]
    Subject: multiple named objects with the same name and interface
    All,
    More than once, I have wished that Forte allowed you to place named
    objects with the same name in more than one partition. There aretwo
    situations in which this seems desirable:
    1) Objects that are not distributed, but are mobile (passed by value
    to
    remote objects), cannot safely reference a Service Object unless it
    has
    environment visibility, but this forces the overhead of a remote
    method
    call when it might not otherwise be necessary. If it were possibleto
    place a copy of the same Service Object (with user visibility) ineach
    partition, the overhead of a remote method call could be avoided.
    This
    would only be useful for a service object whose state could besafely
    replicated.
    2) My second scenario also involves mobile objects referencing a
    Service
    Object, but this time I would like the behavior of the calledService
    Object to differ with the partition from which it is called.
    This could be accomplished by placing Service Objects with the same
    name
    and the same interface in each partition, but varying the
    implementation
    with the partition.
    Does anyone have any thoughts about why this would be a good thingor
    a
    bad thing?
    David N. Foote
    Consultant
    Alexander Ananiev
    Claremont Technology Group
    916-558-4127
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >
    >
    >
    Alexander Ananiev
    Claremont Technology Group
    916-558-4127
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

    Albert,
    In my case I was using a named anchored object to get a handle to an actual
    service object. My named object that I registered in the name service was
    an intermediary to which I did not maintain a connection. So I have not
    explicitly tested what you are asking.
    However, I too was not using a hard coded reference to the SO, and fail over
    and load balancing worked fine. The functions of fail over and load
    balancing are not done by the service object but by the name service, proxy
    and router. Since you are getting a proxy back any time you do a lookup in
    the name service I would think that fail over should work with any anchored
    object that is registered in the name service. When you do a RegisterObject
    call you will notice that one of the arguments is the session duration,
    which implies to me that fail over will be handled the same as for service
    objects.
    Load balancing adds another wrinkle. Load balancing is handled by a router.
    You must get a proxy to the router and not a proxy to an instance of the
    object that the router is doing the load balancing for. In the latter
    scenario you will be bypassing the router. If you are creating, anchoring
    and registering your objects dynamically you will not have a router so you
    will not be able to load balance! This applies even if the objects are
    instantiated within partitions that are load balanced because you will still
    be getting proxies back to a particular instance of the anchored objects.
    There are ways to accomplish load balancing between objects that you
    register yourself. However, the best solution will vary depending on the
    actual problem trying to be solved. If you would like to discuss this
    further, include a little more detail about the scenario you need to
    implement and I will give you what I know.
    BTY what I have outlined above also applies to getting references via a
    system agent.
    Sean
    Cornice Consulting, Inc.
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
    Sent: Friday, July 03, 1998 11:01 AM
    To: [email protected]
    Subject:
    Alex, David, Jez, Sean,...
    My question about both solutions (using Nameservice and agents) is:
    If I reach a remote service object using either a BindObject or an agent, do
    fail-over and load-balancing work the same way as they normally do when
    using a hard coded reference to the SO.
    Albert Dijk
    From: Sean Brown[SMTP:[email protected]]
    Reply To: [email protected]
    Sent: Thursday, June 25, 1998 6:55 AM
    To: Ananiev, Alex; [email protected]
    Subject: RE: multiple named objects with the same name and
    interface
    Alexander,
    I can not comment on the speed difference because I never tested it.
    But, I
    will say that we looked at the agent solution at a client sight
    before. I
    will give the same warning I gave them. If you go the agent direction
    you
    are now using agents for a purpose that they were not intended. Even
    though
    it technically works, as soon as you start using a piece of
    functionality in
    a way the developer did not intend it to be used you run the risk of
    forward
    compatibility problems. By this I mean, since agents were not
    originally
    intended to be used to look up service / anchored object references,
    it may
    not work in the future because it is not likely to be given
    consideration in
    any future design.
    As we all know, programmers are always stretching the bounds of the
    tools
    they use and you may have a good reason (i.e. performance). I just
    wanted to
    let you know the possible risk.
    One final note on a limitation of using system agents to obtain
    references
    to anchored objects. You can not access agents across environments.
    So, if
    you have connected environments and need to get references to services
    in
    another environment for fail-over or whatever, you will not be able to
    do it
    with agents.
    Just some thoughts!
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
    Sent: Wednesday, June 24, 1998 12:14 PM
    To: '[email protected]'
    Subject: RE: multiple named objects with the same name and interface
    David,
    The problem with dynamic binding is that in this case you have to keep
    the reference to the service object somewhere. You don't want to call
    "bindObject" every time you need to use this service object, "bind" is
    a
    time-consuming operation, even on the same partition. Keeping
    reference
    could be undesirable if your object could be moved across partitions
    (e.g. business object).
    The alternative solution is to use agents. You can create custom
    agent,
    make it a subagent of an active partition agent and use it as a
    placeholder for whatever service you need. "FindSubAgent" works much
    faster than "bindObject", we verified that and agent is "user-visible"
    by its nature.
    Alexander
    From: "Sean Brown" <[email protected]>
    Date: Wed, 24 Jun 1998 09:12:55 -0500
    Subject: RE: multiple named objects with the same name and interface
    David,
    I actually determined it through testing. In my case I did not want
    this to
    happen and was trying to determine why it was happing. It makes sense
    if
    you think about it. Forte is trying to avoid making a remote method
    invocation if it can.
    Now, for anything more complex than looking locally first and if none
    is
    found give me any remote instance you can find, you will need to do
    more
    work. Using a naming scheme like Jez suggests below works well.
    Sean
    - -----Original Message-----
    From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
    Sent: Wednesday, June 24, 1998 4:34 AM
    To: [email protected]; 'David Foote'
    Cc: [email protected]
    Subject: RE: multiple named objects with the same name and interface
    David,
    there's a mechanism used within SCAFFOLDS that allows the
    location of the 'nearest' SO when more than one is available.
    It involves registering each duplicated SO under three dynamically
    built
    names. The names include the partition, the node or the environment
    name.
    When wishing to locate the nearest SO the BO builds a SO name using
    its
    own partition and asks the name service for that.
    If there is an SO registered under that name then it must be in the
    same
    partition and all is well. No cross partition calls.
    If not, then the BO builds the name using its node and asks the name
    service for that.
    This means that if there is an SO outside the BO partition but still
    on
    the same node then this can be used. Again, relatively 'local'.
    If neither of these work then the BO has to resort to an environment
    wide search.
    It may be that this approach could be adapted / adopted; I like it's
    ingenuity.
    Cheers,
    Jez
    From: David Foote[SMTP:[email protected]]
    Reply To: David Foote
    Sent: 24 June 1998 03:17
    To: [email protected]
    Cc: [email protected]
    Subject: RE: multiple named objects with the same name and
    interface
    Sean,
    First, thank you for your response. I have wondered about this fora
    long time.
    I looked at the documentation for ObjectLocationManager and on page
    327
    of the Framework Library and AppletSupport Library Guide indescribing
    the BindObject method Forte says:
    "The name service allows more than one anchored object (from
    different
    partitions) to be registered in the name service under the same
    registration name. When you invoke the BindObject method with a
    request
    for a name that has duplicate registration entries, the BindObject
    method finds an entry corresponding to an active partition, skipping
    any
    entries that do not. If no such active partition is found, or if the
    requested name is not found in the name service registry, a
    RemoteAccessException will be raised when the BindObject method is
    invoked."
    My question is: How did you discover that in the case of duplicate
    registrations the naming service will return the local object if one
    exists? This is not apparent from the documentation I have quoted.
    Is
    it documented elsewhere? Or did you determine it empirically?
    David N. Foote,
    Consultant
    ----Original Message Follows----
    David,
    First I will start by saying that this can be done by using named
    anchored
    objects and registering them yourself in the name service. There is
    documentation on how to do this. And by default you will get mostof
    the
    behavior you desire. When you do a lookup in the name service
    (BindObject
    method) it will first look in the local partition and see if thereis
    a
    local copy and give you that copy. By anchoring the object and
    manually
    registering it in the name service you are programmatically creating
    your
    own SO without defining it as such in the development environment.
    BTW
    in
    response to your item number 1. This should be the case there as
    well.
    If
    your "mobile" object is in the same partition where the serviceobject
    he is
    calling resides, you should get a handle to the local instance ofthe
    service object.
    Here is the catch, if you make a bind object call and there is no
    local
    copy
    you will get a handle to a remote copy but you can not be sure which
    one!
    It end ups as more or less a random selection. Off the top of myhead
    and
    without going to the doc, I am pretty sure that when you register an
    anchored object you can not limit it's visibility to "User".
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href=
    "mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
    Sent: Monday, June 22, 1998 4:51 PM
    To: [email protected]
    Subject: multiple named objects with the same name and interface
    All,
    More than once, I have wished that Forte allowed you to place named
    objects with the same name in more than one partition. There aretwo
    situations in which this seems desirable:
    1) Objects that are not distributed, but are mobile (passed by value
    to
    remote objects), cannot safely reference a Service Object unless it
    has
    environment visibility, but this forces the overhead of a remote
    method
    call when it might not otherwise be necessary. If it were possibleto
    place a copy of the same Service Object (with user visibility) ineach
    partition, the overhead of a remote method call could be avoided.
    This
    would only be useful for a service object whose state could besafely
    replicated.
    2) My second scenario also involves mobile objects referencing a
    Service
    Object, but this time I would like the behavior of the calledService
    Object to differ with the partition from which it is called.
    This could be accomplished by placing Service Objects with the same
    name
    and the same interface in each partition, but varying the
    implementation
    with the partition.
    Does anyone have any thoughts about why this would be a good thingor
    a
    bad thing?
    David N. Foote
    Consultant
    Alexander Ananiev
    Claremont Technology Group
    916-558-4127
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >
    >
    >
    Alexander Ananiev
    Claremont Technology Group
    916-558-4127
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

  • TextWrap and Anchored Objects

    Okay, I've been using InDesign since it was PageMaker 4.3 so I'm pretty familiar with the features and the intents behind them. Lately I've had a problem for which I can't seem to find a fully acceptable work-around. It involves text-wrapping anchored objects within a large, multi page flow of text.
    Boiled down to a basic description of the issue, I need a graphic to appear on a page within a text block at a certain point, that is, at the top of a justified paragraph on the extreme right side of the column. The object occupies 7 lines of text, dropping down into the paragraph from line 1. The object needs to have a word wrap applied causing the text within the block to flow around it.
    The problem is that as the document evolves, the quantity of text that precedes the paragraph holding the graphic changes. As text is added to preceding paragraphs, text advances through the text blocks to a point where the graphic now begins to be displayed beyond the bottom of the text block rather than jump to the next text block. Forcing the object to stay within the text block (by using the "Keep with top/bottom column boundaries") pushes the object up, effectively leaving the original location and invading the preceding paragraph.
    The first solution I tried was to anchor the object 7 lines deep in the paragraph, then manually move it up to the first line using the "Y-offset" in the "Anchored Objects Options" palette. When I do this, the object's text wrap fails (!), always working only at line 7 and below and not moving up with the object.
    My current solution is to not embed the object inline at all, but place it over the text block. This works but is unsatisfactory since the text is constantly changing, forcing me to stop and reposition the graphic - plus the 500 or so similar objects that follow in similar situations further along in the document.
    Any ideas?

    Unfortunately, no. If the anchor is inserted at the top of the paragraph (where I want the top of the image to be), the image won't flow to the next text block when any other part of the image (i.e., any part of the image that is not on the first line where the anchor is) is beyond the end of its text block.
    Here is how I want the page to look:
    Here, the graphic is not placed inline but sits over the text with textwrap set.
    But rather than have all my objects placed over text, I want them inline. If I place the anchor anywhere below the first line of text, (again, the line where I want the top of the image to be), text wrap won't function above the anchor point regardless of how high I move the image:
    If I place the graphic in its own paragraph above the first line of the paragraph, the result works well as long as the text preceding the anchor doesn't flow any further (i.e., no additional text is added). But as text is added and once the line holding the bottom of the photo flows to a new text block, one of two problems arises. If "Keep Within Top/Bottom Column Boundaries" is checked the graphic moves up:
    If "Keep Within Top/Bottom Column Boundaries" is unchecked, the graphic begins to bleed out of the text box:
    I can't believe there isn't a simple (or even complex) solution to this problem...

  • Release all anchored objects at once

    Dear All, I want to release an all anchored objects from my file. All anchors are created inside the table. I am using InDesign CS4.
    I have a file for 4 pages which is containing more than 150 images to be released from anchored. That images should be placed in the same place. Only need to release. I want to do this for more than 100 files (400 pgs. it may increase in future). I tried this in Search/replace option using Object, but only i can able to find using custom option in the anchor options panel, not able to relase using search and replace.
    Please help me ASAP.
    Thanks in Advance, Thiru

    Hi Path,
    Your wrongly entered the code myDoc.ChangeText() instead of myDoc.changeText();
    Please copy my previous code and run once again i think you typed wrongly.
    Please copy and paste estk and run the script.
    var myDoc =app.activeDocument;
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat= "^a";
    myDoc.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    mr.pathi wrote:
    Hi CSM,
    Thanks for your help. I copied this code and i run this script but while running this I am getting an error like below:
    JavaScript Error!
    Error Number: 1
    Error String: changeText
    File: C\...
    Line 4
    Source: myDoc.ChangeText();
    Could you plz check and let me know. Thanks in advance.
    thx
    csm_phil

  • 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.

  • CS4 Linking Text Boxes Together in Anchored Objects?

    Hi. Using InDesign CS4 I have a Anchored Object that I would like to link part of it to the next one in the text frame. Example: I have grouped together a text box, a box with a placed UPC from Illustrator and another text box stacked on top of each other, all lined up. I group this and place it in a text box so I can set these at different places along a 29" document. When I have overset text, in the top box for example, I see the + sign but can't grab it to try to link the text to the next text box in the Anchored or grouped object. All I can do it change the size of the box - even when holding down the command key on the Mac with the text too enabled. I am setting it up this way so all three boxes stay together when positioning on pages. I have multiple rows of these so it makes it easier to modify. If I take the grouped set out of the text box so it's by itself I can grab the overset text. I am trying to link text boxes so it's easier and faster to flow in text from another program. Thanks.
    Pat

    OK, I will try to get the whole page later. I want to keep what you see in the screen shot - one of the grouped objects - together as it goes across the page. So the 9232554 text and all bellow that would stay grouped together when I tab it over to line up to a certain spot on the page. This is placed in a text box that runs horizonal on the page, about 28"  across. I also wanted to link the 9232554 box to the 9232729 box which is just a duplicate of the group of text and UPC code before it. But from what you say, and what I tried to do, I can't. Even when all the anchored object groups are in the same long text thread. I tried not grouping  each section - the UPC code sandwiched by the text boxes, but could not place them in the long text box when not grouped togther.
    I wanted to flow in the text to all 14 of these grouped or anchored objects, say all top boxes, in one 'paste' instead of doing each one at a time but keeping the 3 elements you see togther at all times.
    Pat

  • Text to anchored objects

    Hi,
    Somehow I think my question is quite simple to answer, but I've run out of ideas right now...
    Is it possible to place text in an anchord object and remove it from it's current story in one action? The words are all labeled (xml), but they need to be placed outside the textframe they are in.
    Right now the only way I see that happening is to copy-paste every single word in it's anchored object (which is also placed on the right place by hand...)
    I hope you can help me! Anyhow, thanks for any suggestion...
    Maaike

    It's not free, but this'll do what you want: http://in-tools.com/plugin.php?p=18
    If you only need it for a one-off job, you can use it in demo mode. (It's fully functional for 30 days.) Of course, I'd appreciate if you'd buy it though!
    Harbs

Maybe you are looking for

  • Import problems from scanned negativeas

    I recently scanned some negatives at 2400 dpi using and Epson scanner directly into Photoshop. Of course Photoshop reverses the image and I did further level adjustments and retouching. When I import these images into iPhoto, they show up as a black

  • 'cc' is not available

    Hi, Am a newbie for this Oracle E-business suite, and i have been searching lot of links for installing and found this thread which has been very very informative and thanks a lot for the post. I have downloaded the oracle 11i suite from e-delivery a

  • Martin Evening's Lightroom book

    Is now shipping from Amazon.

  • Download function module is obsolute

    How to handle importing parameters of Download Function module in unicode conversion. If i am converting my SAP from Non unicode to unicode environment how should i handle the importing parameters od download Function module in Cl_gui_frontend_servic

  • After Upgrading to Mavericks FCPX WILL NOT Export! help

    Hi All, same old story, same old song. Everything has been working fine. I just completed the edit of my documentary, and whaddya know, I go to export and I get an error message. This happened before and I changed the codec to Apple ProRes 422(HQ).