Release of anchor all the objects/text images

Dear all,

It's my 1st question on AC (Adobe Community), so I'll explain what I need here in details and excuse me my little or even none experienced in coding, especially in Javascript.

I have a book with many INDD files, these files have a lot of images and objects and text blocks are anchored to the main text area.

I searched on AC for the way to free him from all my anchored object and the main text block text block. so I found the average script.

I found her name "ReleaseAnyAnchor" created by 'Dave Saunders' to release the anchored object (graphics, text, else) but one by one. and it will take too much time to free myself from all the objects on the book. (the Script code is below)

//DESCRIPTION: Release Inline & Anchored Items
//Written by Dave Saunders, released on indesignsecrets.com


(function() {
  if (app.documents.length > 0 && // must be a document open
  app.selection.length == 1 && // selection must be of single item
  app.selection[0].parent instanceof Character) { // selection must be anchored
  if (parseFloat(app.version) < 6) {
  releaseMe(app.selection[0]);
  } else {
  app.doScript(releaseMe, undefined, app.selection[0], UndoModes.entireScript, "Release Any Anchor");
  }
  } else {
  alert("Please select an inline item.");
  }


  function releaseMe(myPI) {
  var yePage = findPage(myPI);
  var startBounds = myPI.geometricBounds;
  myPI.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
  myPI.anchoredObjectSettings.releaseAnchoredObject();
  if (yePage != null) {
  myPI.move(yePage);
  }
  myPI.move([startBounds[1], startBounds[0]]);
  }


  function findPage(theObj) {
  if (theObj.hasOwnProperty("baseline")) {
  theObj = theObj.parentTextFrames[0];
  }
  while (theObj != null) {
  if (theObj.hasOwnProperty("parentPage")) return theObj.parentPage;
  var whatIsIt = theObj.constructor;
  switch (whatIsIt) {
  case Page : return theObj;
  case Character : theObj = theObj.parentTextFrames[0]; break;
  case Cell : theObj = theObj.insertionPoints[0].parentTextFrames[0]; break;
  case Note : ; case Footnote : theObj = theObj.storyOffset; break;
  case Application : return null;
  }
  if (theObj == null) return null;
  theObj = theObj.parent;
  }
  return theObj
  } // end findPage


}());


also, I found another script which release all of the graphic objects, but not objects of text frame. (I get it from AC, but I remember exactly the place where.)


if(app.documents.length!=0) {
    var ad = app.activeDocument;
    var pgit = ad.pageItems;
    var pgitlg = pgit.length;
    var objprocessed = 0;
    if(pgitlg !=0)
    {
        for(i=0; i<pgitlg; i++)
        {
            if(pgit[i].getElements()[0].constructor.name == "TextFrame")
            {
                var tfg = pgit[i].allGraphics;
                var tfglg = tfg.length;
                for(j=0; j<tfglg; j++)
                {
                    var rec = tfg[j].parent;
                    rec.anchoredObjectSettings.releaseAnchoredObject();
                }
            }
        }
    }
}


all codes work well for me, but I need to try to merge or make a new code [as I mentioned that I don't have experiences in JS, so I do not know how to compile a new code that do the 2 steps of the 2 codes.]


my request is, could you please help me to do this new code, or merge to compile a new code in the new file.


I saw this topic releasing objects anchored and want to make a new script.


Please try to help me as soon as POSSIBLE because I need this script to all my object anchored to begin working on the output file.


I need the code works on any version of INDESIGN.


Thanks guys, waiting for you.


AMR

AHA. If you need test whether a line is an anchor. If this is the case, use. releaseAnchoredObject(), if it is not, the simplest is to make an anchor, then release it:

if (pageItems[i].parent instanceof Character) {
    if (pageItems[i].anchoredObjectSettings.anchoredPosition !== AnchorPosition.ANCHORED) {
        pageItems[i].anchoredObjectSettings.anchoredPosition = AnchorPosition.ANCHORED;
    }
    pageItems[i].anchoredObjectSettings.releaseAnchoredObject();
}

It works, but I don't know if the results are what you're after.

Peter

Tags: InDesign

Similar Questions

  • Try to find all THE objects that point to a column...

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production



    I have several patterns, all that have tons of objects that point to a column in a table.
    I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.

    There is a view that I can watch that will show me all the objects that relate to a single column?

    my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.

    I can't forget all the objects. Is there any one place to find it?

    Thank you.

    Use the mode - DBA_DEPENDENCIES

    select * from dba_dependencies
    where type= 'TABLE'
    and name = '';
    

    Another gross way...

    select * from all_source
    where lower(text) like lower('%%')
    group by owner,name,type;
    

    But, this will not search in the views & MView queries.

    HTH
    Vanessa B.

    Published by: Vanessa B on October 15, 2012 23:09
    -added

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • I don't see Smart Guides around all the objects on the artboard even if the guides are checked in view

    Hello

    First of all, I don't pretend to be some illustrator expert but I have a good understanding of the functions of Adobe Illustrator key.

    However, when I went to design a logo yesterday, I don't see smart guides (blue lines, see below with all selected items) around all the objects on the artboard even if the guides are checked in order. I do not expect the controls on each being showing unless they are selected, but I do that I expect to see the blue line itself.


    Picture1.png

    I contacted the Adobe Illustrator Chat but really, they do not seem to have a clue and seemed to be intentionally misunderstanding me despite the fact that I sent this image. They were also quite rude!

    In any case, I'm now desperate so someone here can help me please.

    Thank you very much

    Mike

    PS I looked everywhere online for a solution and tried some of those suggested but without success.

    You may not see an unselected object with no line or fill in preview mode (this is why it is called overview).

    You can select it when you don't have fill and stroke in the tools Panel and choose: select > same > background & contour.

  • Can I move all the objects again selected layer without clicking hundreds of layer bars?

    I'm working on a complex illustrator file generated by GIS software. He gave me all kinds of groups of clip & road clip - what I really need, it's just to put all the same coloured polygons on the layer of a high level (unfortunately I can't draw all of my polygons in a group because illustrator doesn't pull these objects out of their existing clipping groups, and the card gets screwed completely upward if I release the clipping masks. With simple cards I have no problem Direct by selecting all of the polygons, I want, selecting their layers in the layers panel, then moving them to a new layer. This card is too complex, because there are hundreds of objects and hundreds of corresponding layers (they are not contiguous, or else I could simply click can be done with it).


    I used select > same > fill type to select all the polygons, I want that on a single layer, but I really hope that I don't have to select all the layers for each item one by one before I can move them to a new higher level layer. Does anyone know if there is a way to moving all the objects in a new layer selected without having to actually click all the layers in the Panel? Completely open to the alternative routes to my desired result!


    Thank you very much.

    Of course, after making the selection drag selection (to the right of the layer) icon on the desired layer. This will move any selected layer to the new layer.

  • SWF covers all the objects on a page

    After I export interactive PDF, the page that has a SWF on it covers all other objects (text, in my case). I tried this sort with layers, but it does not work.
    I would appreciate your help,
    Thank you

    Personally, I suggest that you do not have. I think that the PDF is not a ship suitable for this task, regardless of how Adobe could push. PDF files is as a static document. in some cases like a form to fill out (if it is more heavy). Others will do doubless disagree.

  • (1) is there a function for all the object of the same size?

    (1) is there a function for all the object of the same size?

    Sorry, I thought you wanted to align the objects.

    We do not have the function to make items of the same size. You must change one by one. To change the .lks file may be more effective.

  • My kodakESP5 will not print all the object I want to print only a part of it

    My kodak ESP5 will not print all the object I want to print only a part of it

    Hi jakenny,

    You may need to replace an ink or toner cartridge. Check the status information in the queue for low ink or toner messages. If the printer has a status or display area, you can also check for low ink or toner messages on the printer itself. For more information, see change an ink or toner cartridge and view the print queue.

    Follow the instructions below that may help you resolve the issue.

    Method 1:

    See the link below and check the print settings.

    Choose printing options

    http://Windows.Microsoft.com/en-us/Windows-Vista/choosing-print-options

    Method 2:

    Try to update the printer driver which might help you resolve the issue.

    Click on the link below for more information on the updated printer drivers.

    Find and install printer drivers

    http://Windows.Microsoft.com/en-us/Windows-Vista/find-and-install-printer-drivers

    Check whether the problem is resolved.

    For more information, please see the link below.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Please post back and let us know if it helped to solve your problem.

    Kind regards

    KarthiK TP

  • I can't add all the folders more images. I am running windows 7.

    I am running Windows 7.  I can't add all the folders more images. I tried troubleshooting answers on the net, but nothing helped. Any suggestions?

    Hello Anne,.

    Try this consensual approach of Linda Yan: http://social.technet.microsoft.com/Forums/windows/en-US/97de8a2a-12f2-4381-a409-a78f4ae551cf/cannot-create-new-folder-in-windows-7 . Tip, save the file type all files *. *, not the end of default *.txt.

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • Pathfinder will unite all the objects on each layer

    I wonder if anyone can help me with the script, which is unite mode form via pathfinder on all the objects on each layer.

    I manually activate a layer, pressing ctrl + a, and then clicking the shape mode button unit. Then, the layers are over 50 then, making him the great peace of time.

    Piggyback off pixxxel schubser

    function MergeAllLayers() {
        // exit early if there are no files open
        if( !app.documents.length ) return;
        var doc = app.activeDocument;
    
        // clear selection
        doc.selection = null;
    
        // loop through all layers
        var layers = doc.layers;
        for( var i = 0, ii = layers.length; i < ii; i++ ) {
    
            // select everything on the current layer
            layers[i].hasSelectedArtwork = true;
    
            app.executeMenuCommand("group");
            app.executeMenuCommand("Live Pathfinder Add");
            app.executeMenuCommand("expandStyle");  
    
            // clear selection
            doc.selection = null;
        }
    }
    
    MergeAllLayers();
    

    Equal to true, the definition of the hasSelectedArtwork layer property is a fun thing to select the entire document on a layer, you've just got to make sure to disable any other settings first.

  • Receptive Slide height develops all the objects on the slide master background.

    Hey,.

    If I build a sensitive project and slides, I need to unlock the height of the slide in mobile mode on some slides to create a scrolling to display more content.

    When I adjust the height of the blade, it develops all the objects in the background of the slide (my header, title...). These elements are not merged.

    Is there anyway that I can adjust the height of the blade so that it is not developing all the objects on the slide, only the backdrop (i.e. the white canvas). I try to use a model of slides for content pages.

    Or is the only way around it to create a number of different slide masters with heights of slide?

    See you soon

    Hello

    I feel your pain. I struggled with this for a long time, but finally found a solution.

    If you want to extend the height of the blade, creating a scroll bar. But you want certain elements to stretch and others do not.


    Object to Extensible NOT / Static

    • Create in the Slide Master
    • Set the properties top and % Relative height.

    Stretch/dynamic objects

    • Create directly in slide film
    • Set the Top % Relative property
    • Set the Height property for % (not related).

    I recommend to create a slide film finalized and then duplicate this slide for all other instances.

    Let me know if it works.

  • Disable all the object

    How can I have disabled all the object in the scene of coding?

    Thank you

    use:

    function disableAllF(dobjC:DisplayObjectContainer):void {}

    for (var i: int = 0; i<>

    If (dobjC.getChildAt (i) is InteractiveObject) {}

    InteractiveObject (dobjC.getChildAt (i)) .mouseEnabled = false;

    }

    }

    }

  • Push all the objects in a tablespace to another

    Hello

    on the 11g R2 (11.2.0.3)

    We need to move all the objects in one tablespace to another.

    Is this possible?

    How can we push all the objects of a logical disk space to a different tablespace?

    Thank you.

    Generate the

    ALTER TABLE TableName MOVE TABLESPACE new_tbsname
    and

    ALTER INDEX REBUILD new_tbsname IndexName

    orders.  You can use "SQL Generation of SQL" or write a PLSQL WHERE USER_SEGMENTS loop.

    If you have some LOBs you must move the LOBs using
    ALTER TABLE TableName MOVE LOB (lobname) STORE AS LOBSEGMENT (TABLESPACE new_tbsname)

    Hemant K Collette

  • work in Hebrew and all the flip text

    work in Hebrew and all the flip text

    Hi i0544782932,

    Welcome to the Adobe Forum,

    You can try: http://helpx.adobe.com/illustrator/using/arabic-hebrew.html

    Kind regards

    Baudier

  • Export all the objects with PowerCli

    Hello

    I'm not in VSphere or vmware but a Director of SCOM and I am currently working on a solution to monitor our VCenter with SCOM server. To be able to automatically resolve alerts, I would need to find a way to export a list with all the objects of the VCenter server to create them as instances in SCOM and map the error directly state events to these objects.

    I think that this should be possible with PowerCli so the plan was to have a script export this list frequently and run a discovery of the SCOM Agent Script to automatically create related instances. Does anyone know how this export could be made with PowerCli? Since I'm not in vmware / vsphere and we don't have a test environment, but only the Production System in our office, I am somewhat limited in trying just by the cmdlets to discover this.

    No matter what pointer in the right direction which cmdlets can achieve this is as welcome as script ideas that could help me out here.

    Thanks and greetings

    Marco

    OK, I see.

    When you want to display a map, it is better to load the objects requested in advance and update them regularly.

    Have you ever thought about what you want to see on the map?

    A hierarchy of the sample could be

    vCenter(s)                                     <- in $defaultVIServer after a Connect-VICenter
      datacenter(s)                              <- Get-Datacenter -Server 
       cluster(s)                                   <- Get-Cluster -Server 
          resource pool(s)                     <- Get-Resourcepool -Location (Get-Cluster )
             guest(s)                               <- Get-VM -Location (Get-Resourcepool )
          vmhost(s)                               <- Get-VmHost -Location (Get-Cluster 
             datastores                           <- Get-Datastore -Location (Get-VMHost )
             network
                vswitches                         <- Get-VirtualSwitch -VMHost (Get-VMHost )
                    portgroup(s)                 <- Get-VirtualPortgroup -VMHost (Get-VMHost )
       standalone host(s)
          guest(s)
          datastores
          network
             vswitches
                 portgroup(s)
    

    I added some of the cmdlets that you can use to get items for a specific branch of the hierarchy.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Transparently adding a criterion to all the objects in an application view

    Hi all

    We are migrating an application based on the forms in Oracle ADF and JDeveloper 11 g R2.

    In our application Forms, we add transparent business to all the blocks of data code where clause property by using the following expression: company_code = SYS_CONTEXT('erp$security_mgmt_ctx','company'). How this can be achieved in Oracle JDeveloper and Oracle ADF.

    Any help will be much appreciated.

    Thank you
    Bilal

    Hello

    You can have a method on the AOS, that is the place where clause to the view of all the objects and run the query.

    Ex:

    public void setWhereClause2AllVOs(String compName){
    this.getVO1().setWhereClause("='" + compName + "'");
    this.getVO1().executeQuery();
    this.getVO2().setWhereClause("='" + compName + "'");
    this.getVO2().executeQuery();
    .....
    }
    

    You can call this method at the start (e.g. as an activity in your workflow by default methodCall)

    Arun-

Maybe you are looking for

  • Portege Z30-A-108 - use of the headphone/microphone jack

    My Portege Z30-A-108 (running Windows 7) has a unique plug taken jack for headphones/microphone. I want to connect my combination of headset to use Skype, but like everything I've seen has separated mini jacks for headphones and microphone. If I plug

  • Re: Satellite A505-S6040 - strange problem after installation of the NVIDIA driver

    Hello, first of all sorry for my bad English, but ill try to explain myself as best I can. I have a Toshiba A505-S6040 I like 2 months My problem is that when I start the laptop and go to the desktop theres a certain point that stop loading... and it

  • HP 7520

    Hello.  I followed all the advice to get a code from application of the digital display of the printer and it is never an option to print the form which gives you the ecode. I am a web enabled and connected.  Also the integrated applications do not c

  • behind the bridge router will not connect.

    Im trying to set up my network like this, Modem > ROUTER1 > bridge > ROUTER2 > PC Both routers are WRT110 and the bridge is a WET54g. I can access the internet if I plug the power cable directly into my PC from the bridge, but when I plug it into the

  • No audio output is installed

    I have no sound on my computer