CS4 JS Reference to anchored objects

This worked in CS3, does anyone know why this doesn't work in CS4? Now I get an error saying you can't move text to its current location. It seems myAnchSory is referencing the main story and not the anchored frame's story.
myTF = myFinds[j].insertionPoints[-1].textFrames.add();
myAnchStory = myTF.parentStory;

Jongware,
You're wrong on a couple of counts:
1. The parent of the inline/anchored frame is the character that holds it.
2. The parentStory is (in effect) the same as myTF.texts[0].
I just used Fred's code and did this with it, having created a document with a text frame holding just the word "Hello" and it worked:
myDoc = app.documents[0];
setupFindText("Hello");
myFinds = myDoc.findText();
myTF = myFinds[0].insertionPoints[-1].textFrames.add();
myAnchStory = myTF.parentStory;
myAnchStory.texts[0].contents = "What?";
function setupFindText(find, change, wholeWd, caseSense, foots, hidLayers, lockedLayers, lockedStories, masters) {
  app.findTextPreferences = null;
  app.changeTextPreferences = null;
  try { app.findTextPreferences.findWhat = find } catch(e) {};
  try {app.changeTextPreferences.changeTo = change } catch(e) {};
  app.findChangeTextOptions.properties = {
    caseSensitive:(caseSense == null ? false : caseSense),
    wholeWord:(wholeWd == null ? false : wholeWd),
    includeFootnotes:(foots == null ? false : foots),
    includeHiddenLayers:(hidLayers == null ? false : hidLayers),
    includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
    includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
    includeMasterPages:(masters == null ? false : masters)
} // end setupFindText
Dave

Similar Messages

  • 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

  • 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

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

  • Problem with anchored objects in file from CS4

    I opened, in CS5, a file which was done in CS4 and discovered all my anchored objects were gone!
    Analising the document, I understood they were there, but in a kind of mask ("Illustrator style") but in a text frame, which is odd, I think.
    I show here:
    1. one picture of the CS4 file
    2. one picture of the same file, but opened in CS5
    3. one picture of this file, in CS5, showing the "ghost" when I put the cursor over the "missing" anchored object
    If I cut and paste the objects they appear, but if I put them back like anchored objects, they disapear again.
    I had to fix every thing in a document I was working (it's a 124 pages document...) without anchored objects, just grouped them, because it was urgent (as always...) but I am reporting this because maybe people hadn't notice this and maybe there's a way to fix this.

    It's very hard to tell what might be causing this without seeing the actual file. I looked around and found a CS4 file on my suystem with hundreds of anchored photos, and they show fine when I open in CS5.
    My first impression is that this is ither a layer problem of some sort, or perhaps the objects have been set not to print and you have a preview mode enabled, but eh screen captures don't seem to support the latter.
    What happens if you export the file to .idml in CS4 and open that in CS5?

  • Help...anchored objects in CS4 freezes Indesign

    I was really excited to use anchored objects in a recent project where I wanted to insert a bunch of callout text boxes peppered throughout the document layout that would reflow with it's neighboring text as I made changes.
    When I had about 4 text boxes placed, InDesign CS4 would freeze with the spinning rainbow wait cursor spinning forever. It would freeze just as I started entering settings in the "custom" anchored object dialogue window.
    What am I doing wrong? Or is this a bug?
    Thanks for any advice or suggestions.
    grafxgirly

    I've been working on a file I created for 4 hours.  Saved properly many times, reopened and resaved with no problems.  Now it won't open. 
    Every other file I have opens fine, but this one just freezes up the program.   I tried recovering, deleting the recovery file, etc....
    It sounds like Peter has it hand, but some possibilities are Preflight and SING; you can try disabling them both. What OS?
    What version of InDesign? 6.0.6?

  • [CS4-CS5] Importing anchored objects into a table

    Hi,
    do you know if is it possible to import a table in ID through an XML file positioning an image (as an anchored object) within a cell?
    I'm currently importing a table but it looks to me like it's not possible to add images...
    I tried with this XML:
    <Container xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/">
      <Table aid:trows="10" aid:tcols="5" aid:table="table">
        <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1">...</Cell>
        <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"><Image href="file:///Users/Me/Desktop/Image.jpg"/></Cell>
      </Table>
    </Container>
    but it doesn't work at all.
    Also, if I export XML structure after inserting an image within a cell it doesn't appear in the exported XML.
    I doubt it's possible...
    Thanks anticipately!
    Lele

    Hi,
    To import PDFs you can refer following links
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c01f54a2-99f1-2a10-5aa5-dcc50870e7f6
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e057a910-3d4b-2b10-b490-cb569d694614
    Regards
    Nisha

  • 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

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

  • Remove Anchor Object in the Active document

    I have a couple of InDesign CS4 documents which has Anchor many objects. I just want to remove/delete the entire anchor along with objects through Javascript. Can someone help me out on this regard?

    That can be done with a simple search-and-replace -- see the Help on Searching for the code.
    You can put this search-and-replace in a script, or save it in the Saved Query list.

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

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

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

  • Anchored Objects Stuck in Text Frame

    Hello,
    I have updated from CS4 to CS6 and am now having a problem with being able to edit anchored objects from a file that I used to work off of in the CS4 version.
    I am working on a catalog that has product assessory boxes that are made up of images and text. In CS4, I created the accessory boxes, grouped all the items and pasted it in the text frame that held the text and photos of other products. I used to be able to edit the text or cut and paste the accessory box out of the text frame it was placed into. Now since I have upgraded to CS6 I cannot edit them at all, when I try to select the box with the selction tool or highlight the text with the type tool nothing will happen. The only thing I can do is hightlight the whole box and cut and paste it into another text frame I create, which doesnt help because I still cannot edit them.
    In CS6, I have created an accessory box from scratch, and followed the same process as I have before and I can edit and select like I used to do. The problem only seems to come with the accessory boxes I have created in CS4.
    This is a pretty large catalog, and will take a lot of time to recreate all the accessory boxes, so any suggestion to help fix the problem will be greatly appriciated.
    Thank you!

    Long shot, but go to the application preferences and uncheck the box in the General section that says Prevent Selection of Locked Objects.

  • Releasing Anchored objects

    I saw a couple of earlier posts with code for releasing an anchored object ( http://forums.adobe.com/click.jspa?searchID=2331267&objectType=2&objectID=1109584 and http://forums.adobe.com/click.jspa?searchID=2331267&objectType=2&objectID=2062943 ) but I'm not sure how to make this work for my current situation, so would one of you folks give me a hand, please?
    I'm building a directory where business names are in one paragraph style that is a numbered list, but each of these paragraphs has anchored at the the beginning a frame containing proprietor names and phone numbers in other separate paragraph styles. I need to build an alphabetical index of stores and proprietors with the index number from the list. This actually isn't too hard to organize because I can set the numbered list style to start on next page, thereby making the list number and page number the same, but I need to release all the anchored objects so they don't get pulled in as part of the store name. I figure this should be pretty simple, so how about it? CS4, if it matters.
    Peter

    I didn't check the posts you mentioned, but I remembered there was a catch (an anchored object is identified only by having 'anchoredObjectSettings'). The extra try..catch surrounding the 'release' ought to shield you from oddities, as in "you can't release an anchored graphic".
    Other than that ... perhaps it's easier if you can select a text frame to release everything within? Or at once everything in the entire document?

  • [JS CS3] Releasing Anchored Objects

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

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

  • Anchor Object without Modifying Text

    Short:
    Is there a way to place objects and attach their location to a particular numbered paragraph, without using anchored objects, i.e., is it possible ot make an anchored object without a inserting an anchor into the text?
    Long:
    I am currently assembling a document where the text is placed from a Microsoft Word document and figures will be placed from a variety of sources (.pdf exports of TeX equations, .ai figures, etc.).
    I have explored anchored objects to some extent, and they provide all the functionality I need, with one exception.
    I would very much like to be able to insert figures into my indesign project and be able to update my text in Microsoft Word without losing the insertion points. As it is now, when I update my linked Word file, the anchors are removed from the text.
    One approach I considered was to complete the majority of the text in Word, then place the text into InDesign, break the link, add my anchors, and complete revisions in InDesign. Unfortunately, this approach will not work, as I am using a reference manager in the text, and reordering/adding/removing references would become exceedingly tedious in a document with dozens of references and nearly 100 citations to those references.
    Thanks so much for your help in advance!

    Short: No.  Longer:  Perhaps you should just put the objects on the page, or pasteboard, for now, and do the anchoring when editing is done.

Maybe you are looking for

  • Saved pages 09 documents can not be opened

    For the last week, I have not been able to open documents created and saved in pages 09 in my mac.  When I try to open I get a message indicating that I need that I need to pupdate to the newer version of pages - though I never used this version to c

  • Adobe e-mail body can't be changed

    Using Elements 11, when I attempt to share photos via e-mail attachment, the e-mail text area is locked and I can not change it before sending the e-mail using Adobe e-mail service.  I can change the subject line in the e-mail dialog and when I send

  • Acrobat 9. Error 14

    Acrobat 9. Error 14 I had my computer crash and apparently corrupt a 363 page PDF manual. When I tried to modify and save it, I got the infamous Error 14, can't save this file, problem reading the document. I could not copy old buttons or install new

  • Problem with \ code display

    in a string when i put a "end of line" \n, in the txt files it appears a little square and it doesn't change line. Thanks all

  • Final Cut Pro 7 Multicam

    A former Avid user, I am really challenged to learn FCP's muliticam. I have watched Richard's tutorial and quite frankly either I'm a dit OR I just don't have even screen time on FCP to get it. Can someone point me to a location where this tutorial i