Placing anchor objects

Hi guys,
I am just testing a script for a project, while executing, the following error occurs. Attached my snaps here for your reference.
Target is: The document has the word "[H1]", this words needs to apply pstyle and replace with an anchor object. I had created the library assets too. I think I'm almost at the end. The execution is done for the first instance correctly, after that the error occurs as telling "Text cannot be moved to its current location"
Here is my script:
var mydoc=app.documents.item(0);
app.findTextPreferences=null;
app.changeTextPreferences=null;
app.findTextPreferences.findWhat="[H1]";
app.changeTextPreferences.appliedParagraphStyle="H1"
app.changeText();
var myfounds=mydoc.findText();
var myLib=app.libraries.item(0);
var myAssets=myLib.assets.item("H1");
for (i=0;i<myfounds.length;i++) {
    myfound=myfounds[i];
    myAnchObj=myAssets.placeAsset(myfound.insertionPoints[0])[0];
    myfound.move(LocationOptions.after,myAnchObj.insertionPoints[0])
    //myAnchObj.appliedObjectStyle.name=="OBJ"
Hope you guys will clarify me. Thanks in advance.

Hi Kahrel,
The script is doing pretty good. And I have a still doubt on this.
Can you please give more clarity for this "the references to the remainder of the found items in the array have shifted", means, actually where it is shifted?
Thanks much!

Similar Messages

  • At my wits end: Placing anchored object inline with text & wrap

    Granted I never learned InDesign the way I should.  Once upon a time I fared well with Aldus Pagemaker.  But I've just spent the last two hours trying to resolve a massive gap in my knowledge and I can't do it.  I'm exasperated and desperate for help.
    What I want to do:  I have a tech manual with lots of text and need to place graphic objects in a way that the text will wrap around the object and if I need to edit the text, the graphic will move with where I inserted the graphic.
    What happens:
    1.  I have a text frame with text.  I place the cursor at the beginning of the paragraph and click File> Place, thereafter choosing a graphic.
    2.  Using the selection tool, I click the graphic and then click the icon "wrap around bounding box".
    3.  The text shifts a teeny bit but does not wrap around the object.
    4.  Object is, however, inline/anchored, with text.
    OR
    1.  With nothing selected I click File> Place, thereafter choosing  a graphic.
    2.  I place the graphic on the lower part of the page over a blank space.
    3.  I move the graphic over the text and then click the icon "wrap around bounding box".
    4.  The text flows but when I edit the text, it does not flow around the graphic.
    Conclusion:
    I am retarded.  I even went through Lynda's example here:  http://www.adobe.com/designcenter/video_workshop/?id=vid0073   I was able to place my object in her document and watch the text flow around the text wrapped graphic.
    I read the help docs (I'm a big fan of reading).
    The only thing I can think of is I've set my text box up wrong or I have no idea.  I'm so frustrated I am seriously almost in tears.
    My example document (I'm under an NDA and can't release my original document, but I duplicated what I've done in the previous one) is here for anyone who can tell me what I've done wrong.  Thank you kindly.
    http://www.xandria.ca/test01.indd

    Alrighty, this is bizarre.  I couldn't leave well enough alone and I'm still trying to hammer this one out.  But I just followed my first method described in the original message and then...
    I clicked and dragged the edge of my graphic and the text began to flow around it and it moves with the text.
    What on earth?
    While I can do this for each image, I'd rather not.  What am I still doing wrong, although I seem to have a half baked workaround.
    Cheers.

  • Placing multiple page pdf as anchored objects in text

    I am trying to place a multilple page pdf as in anchored object in text. Ideally I'd like it to flow in and size to the column width. Is this possible? Im running ID 5.5 on windows 7. Ive tried the script for MultiPageImporter-but I cant seem to get it place the pdfs in text. Any ideas?

    If you use the mutlipage importer to import the PDF into a New Document that has the same width as your text frame (perhaps a bit smaller).
    Then Export that to PDF from InDesign.
    You should now have a smaller PDF.
    Then in your document you want to place that PDF choose File>Place and select the New PDF you created.
    Make sure the Show Import Options is ticked.
    Import all the Pages.
    You now have to manually place the PDF into the document into the text to anchor them.
    If you need to do this automatically I suggest visiting the Scripting Forum - forums.adobe.com/community/indesign/indesign_scripting

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

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

  • 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

  • Anchored Objects with text wrap, need vertical space

    Hi.  I'm a fairly new InDesign user and have just this past week learned about anchored objects, threading text frames, numbered lists, and some other fun options. So far InDesign has done most everything I need fairly elegantly. However, I have not been able solve one issue.
    In my book I have numerous pages that have this issue; I'll just describe one case. On this page there are 4 graphics running down the right side of the page. These are not anchored graphics. They do have text wrap defined on the left side and bottom. There is text that wraps lovely on the left.
    Each of these four graphics has a specific paragraph it needs to top align with. However, the text it aligns with may not take up as much vertical space as the graphic does. When I anchor each graphic with the paragraph it needs to align with, the four graphics overlap each other.
    At the moment, to make it look right, I have placed each graphic individually and added a blank paragraph above each paragraph of text that should align with a graphic and use the Space Above of each blank paragraph to have it align with the graphic.
    I'm not even sure what to search to try and solve this. I looked briefly into compound paths, but that didn't look like it would help.
    I hope this is clear and thank you for any assistance at all.
    Andrea

    No problem. Click your cursor somewhere in the paragraph that ought to be aligned with the next image down, then run this Javascript.
    It's not entirely accurate, as it uses the font size to do a minimal adjustment where it actually should use the font's cap height -- but you cannot get to that through scripting. This final adjustment is necessary because ID does know the baseline, and your first line ought to dip just below this to have the top of the first line aligned to the top of the image.
    //DESCRIPTION:Align paragraph with image.
    // Jongware, 15-Jul-2010
    if (app.selection.length == 1 && app.selection[0].hasOwnProperty ("baseline") && app.selection[0].paragraphs[0].index > 0)
         // find nearest image on the right
         ypos = app.selection[0].paragraphs[0].lines[0].baseline;
         pg = app.selection[0].parentTextFrames[0];
         while (1)
              if (pg instanceof Character)
                   pg = pg.parentTextFrames[0];
              if (pg instanceof Spread || pg instanceof Page)
                   break;
              if (pg instanceof Document || pg instanceof Application)
                   exit(0);
              pg = pg.parent;
         img = pg.allGraphics;
         dist = 999999;
         nearest = null;
         for (i=0; i<img.length; i++)
              if (img[i].geometricBounds[0] > ypos && Math.abs(img[i].geometricBounds[0] - ypos) < dist)
                   dist = Math.abs(img[i].geometricBounds[0] - ypos);
                   nearest = img[i];
         if (nearest == null)
              alert ("no image found nearby!");
         else
              prevm = app.activeDocument.viewPreferences.verticalMeasurementUnits;
              app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
              top = nearest.geometricBounds[0];
              ypos = app.selection[0].paragraphs[0].lines[0].baseline;
              if (ypos < top)
                   app.selection[0].paragraphs[0].spaceBefore = top-app.selection[0].pointSize-app.selection[0].parentStory.paragraphs.previousItem(app.selection[0].paragraphs[0]).lines[-1].baseline;
              app.activeDocument.viewPreferences.verticalMeasurementUnits = prevm;
    This image shows three paragraphs aligned with their respective images (it won't work on the first paragraph, but that ought not to be necessary anyhoo).

  • Images as anchored objects in text

    I use CS4 on a Mac. I'm working on a book with photos of my art in the text. Before I've used Place to insert all images. (I use Picasa to straighten and crop my photos, they are all jpgs in high resolution, the photos are in a separate folder on my Mac).
    To make the pictures anchored objects in-line, I first place the graphic, then according to the instructions I cut, then paste in text, select image, then set the anchored object above the text etc.
    http://www.adobe.com/designcenter/video_workshop/?id=vid0073
    My question is what happens to the image when you cut and paste. Does it retain it's placed format, like file size and resolution? It seems my InDesign file should be bigger with the added images.
    Should I be worried?

    When use File>Place to insert an image to InDesign - InDesign creates a low-res thumbnail to act as a "placeholder" to the original image.
    It's very cumbersome on the computer when viewing the images in full resolution within InDesign. As it could be displaying 10mb for each image and 10 images would 100 mb per page, quite a lot to render; for example.
    Anchoring objects has no bearing on the file size (well maybe a little).
    The file size and resolution is not affected when you place an image. But the Resolution is affected if you SCALE the image any amount.
    If you go to the Window>Info panel and select an image then you can see TWO options ACTUAL and EFFECTIVE PPI.
    Actual refers to what the original PPI of the image is (ppi = pixels per inch and refers to resolution)
    And Effective shows the the PPI after the image has been scaled.
    For example if you place a 72 ppi image and scale it 24% it will now be Effectively 300 ppi (100/24)*72=300
    For printing you should ensure that the image quality is 300 ppi (it's a general rule of thumb and it's not entirely accurate but that's what most printing places operate at as a standard).
    For the record - you should resave images as JPG if you make ANY alteration to them (as a rule of thumb) saving as JPG over and over can add jpeg artifacts to the image which will degrade the image over time, as jpeg is a lossy format (information is removed with each save). A better way would be to save as TIFF as this is a LOSSLESS format - in that no data is removed upon saving.
    I wouldn't recommend Picassa for your image editing. You should get Photohsop or failing that a free open source program like GIMP.

  • Anchored Objects Default Settings

    Hello,
    I'm having a problem with the default settings for anchored objects in InDesign CS5. I changed the default settings (to custom) while nothing was selected, but every time I try to anchor an object it autimatically reverts back to the original default settings (inline). I even closed all of my open documents and changed the default settings again (to custom). However, InDesign still places anchored objects as inline graphics and it's starting to cost me a lot of time, not to mention hair. Is this a bug or am I doing something wrong.
    Any insights on this issue would be greatly appreciated.
    Thank you,
    Jennifer

    Jennifer :•) wrote:
    That didn't change the defaults either. More importantly, how did you know that I'm working with gun photos?
    If you set the defaults in the Place Gun Frame (note that the object style name is case sensitive and must be spelled correctly), they should be applied to all images you place. You won't see anchored object options until the object is anchored, though, either by cut/paste or putting your cursor inthe text flow before placing.
    Do you mean photos of guns? If so, I had no idea. "Place Gun" is the official name for waht we normally refer to as the "loaded cursor" that you see whn you are placing an object.

Maybe you are looking for

  • Keyboard & mouse stopped working

    I just recently bought a new iMac i7 2 days ago & installed Windows 7 Ultimate 32 bit through bootcamp. Everything was working fine until Windows installed updates. Now when it gets to the windows login screen, the mouse and keyboard stop working so

  • Enhanced internet snails pace

    I thought I would post this before switching to Comcast. I recently upgraded to "enhanced". I am told the best speed that I could purchase was 1.1 to 3.0 mbps. After the "upgrade" I went from .79 to .97. I called the off shore support, and actually s

  • Reservation Vs.Allocation

    Hello, we are working with Oracle Apps in a WMS inventory org on R11.5.10.2. We have an issue that seems to be a GAP within the Oracle Logisitics footprint and I was wondering if any of you can help with a solution We have sales orders coming from 3

  • MacBook Pro 13" vs 15" vs iMac + Macbook Air?

    So, my Late-2011 15" Macbook Pro has finally run its course and I'm in need of a new computer. Unfortunately, I'm not sure exactly where to start. I like a lot of the bells and whistles because I'm on my computer a lot, but I'm not sure how many of t

  • Computer crashed with locked users 10.3.9

    I was hoping someone could help me. My desktop system crashed on saturday. With my laptop I was able to get my desktop in transfer mode but one of the users is locked. I have the passwords for the user but I can not figure out a way to unlock them. W