out the anchor text block and copy its contents

Hi all

I have a script that will be able to anchor to InDesign text block and it works well. Now my problem is that I released that anchored text frames and then copy its contents the same position where the text block was at anchor.

Here's what I do:

1. find and block of text of a document (using the find object, anchored by its applied object style).

2. release the anchored object found.

3 copy its contents the same position where it was anchored.

For 1 and 2 rep, I maybe able to do but point 3 I have no idea.

Hope someone can lend me the time to solve this problem.

Thanks in advance for any help.

-elmer

then, instead of myFrame.releaseAnchoredObject (); use myFrame.remove ();

Tags: InDesign

Similar Questions

  • Lately when I use the mouse the words text scrolling and copy on top of itself a million times. This happens when I am on line reading something to say on the MSN homepage.

    Lately when I use the mouse the words text scrolling and copy on top of itself a million times. This happens when I am on line reading something to say on the MSN homepage. Sometimes I can click off on the side and separates the text and I can read it but when I use the scroll of the mouse or even the scroll bar on the sideit happens again and again.

    Hi Jaynebasye,

    1. This only happens when you are on the MSN Web site?

    2. did you of recent changes on the system?

    Method 1:

    You can try to change the scroll settings and check.

    For more information, see the following article

    Change the settings of the mouse

    Method 2:

    Step 1:

    You can also check if the problem occurs in safe mode with network.

    Startup options (including safe mode)

    Start your computer in safe mode

    Step 2:

    If you do not experience the problem in safe mode with network, then perform a clean boot.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: Make sure that you put the computer to a Normal startup once you are finished.

    Hope this information is useful.

  • Script to remove all the images, text blocks, and the page numbers on a layer

    I have a 364 pages with 322 illustrations, photographs mainly, for offset printing.

    The photographs will be be overprinted with the varnish on a plate in the fifth, and I set it up as follows:

    On a new layer, (double layer 1) all photos are removed, but not their mounts.

    The frames are then filled with 100% black.

    All text blocks and page numbers must also be deleted.

    I realize I could have done this job easier if I put all the images on their own layer first, but unfortunately I do not have.

    And I don't do myself, script, so I was wondering if anyone has a script that will do...

    With the help of CC 2015.1 on Windows 7.

    Today, I don't have time to finish, which gave time to until now is the following:

      var myDocuments = app.documents.everyItem();
        var myLayers = myDocuments.layers.everyItem();
        var myStories = app.activeDocument.stories.everyItem().getElements();
        var myDoc = app.activeDocument;
        var myLayer = "palette"; //Add your layer name here
        var NewLayer = myDoc.layers.item(myLayer).duplicate();
        myDocuments.pageItems.everyItem().locked = false;
        myLayers.locked = false;
        myDoc.layers.item(myLayer).visible = false;
        NewLayer.name = "SampleNew";    //Add your new layer name here
    
                    re();
                    function re(){
                        var link, image;
                        var openDocs = app.documents;
                        var openDocsLen = openDocs.length;
                        for (var d = 0; d < openDocsLen; d ++){
                        currDoc = openDocs[d],
                        links = currDoc.links,
                        counter = 0;
                        myLayer.locked = true;
                        myDocuments.layers.item(myLayer).locked = true;
                            for (var i = links.length-1; i >= 0; i--) {
                                if (links[i].hasOwnProperty('relink')) {
                                    try {
                                        link = links[i];
                                        image = link.parent;
                                        image.remove();
                                        counter++;
                                    }
                                    catch (err) {
                                        $.writeln(i + " - " + err);
                                    }
                                }
                            }
                        }
                      }
    
            var myStories = app.activeDocument.stories.everyItem().getElements();
            for (i = myStories.length - 1; i >= 0; i--){
                var myTextFrames = myStories[i].textContainers;
                for (j = myTextFrames.length - 1; j >= 0; j--){
                myTextFrames[j].remove();
                }
            }
    

    If nobody finished the second finalized.

    Hug!

  • Eratic behavior: book, the main text blocks and Cross References

    I'm on InDesign 2014.2. Mac.

    I'm working on a fairly large book. About 14 chapters / sections, about 400 total pages. There are also hundreds of cross references, almost all of them to anchor references.

    The design of the book is as simple as possible. There is no graphics, text blocks only.

    I use a single master page, with facing pages, and a block of text type. I used it throughout the production of the book, and the primary text flow worked well, chapter after chapter. Pages have been created automatically, and automatically flowed text.

    Maybe I need to change the page size of the book, and I also have a lot of editing to do which will reduce a lot of the chapters. I wanted to make sure all pages use the main text flow to do that, go as gently as possible.

    To my dismay, I discovered that although I used systematically throughout the book master text streams, all but three of my chapters have inexplicably lost their text stream. All images in these chapters have converted into ordinary images. That I edit the book, it's playing havoc with paging and referrals.

    I tried to restore the flow of text in one of the first chapters. It's easy to do, in theory.

    • Move the first page off to the side frame
    • Delete all pages except the first page
    • Command-shift-click on the first page to restore the flow of the main text
    • Copy and paste the contents of the old frame into the primary stream restored.


    When I do, the pages to move properly, and I'm back to having a chapter with a block of primary text on each page. Unfortunately, this breaks all cross-references that refer to this newly reorganized chapter and all references to the front in this chapter.


    I tried to do all that I could imagine. Only remove the frames and not pages. Try without the busy book. Nothing works. I tried the command update cross-references in the book menu. Has nothing.


    It seems impossible to redistribute the text in a new primary master framework, without completely breaking the cross references.

    I finally found something that seems to work:

    • Create a new master page at the end of the document.
    • Go to the last page of the history of the chapter and the last history image a link to the text block type on the page that you just created.
    • In the pages palette, delete all pages in the document, with the exception of the master page that you created.

    All text will be redistributed within the frameworks of masters, and cross-references (to and from the frame) seem to be intact.

  • Tutorial of the postcard - can't get the new text block started

    It is a very basic question. I do the tutorial of postcard. I'm unable to get a second text block began on the front of the postcard to the time of the event. I take the text tool and drag it, but it does not create a new text frame. He thinks I want to type the information in the context of existing text.

    I hit escape repeatedly to try and out the first block of text, clicking on the tool text several times, tried shift and click, put the date in a Microsoft Word's doc information and then tried to 'Place' - all to nothing done. How can I get the file to understand that I am creating a second block of text?  How to get out the original text block?

    This seems to be a problem for me, I can't "uncheck" any tool path - by clicking on another tool or hit escape. It does not work. I close the file, then open it new in order to use a new tool. Very frustrating and time-consuming. I work under Windows, if that helps.

    Thank you.

    Try to zoom a little and start your slide text tool starting off the page on the region of cardboard. Using the black selection tool, you can drag to the page and resize it using the bounding box handles.

  • Cut and paste the text of the anchored text box?

    CS4, Mac G5, Leopard.

    I've recently been investigating scripts in InDesign and I have a problem to solve that exceeds my, base, understand.

    I used Rorohiko "Lightning Brain text exporter" to extract text (rtf) of a book.

    The text contains countless anchor text blocks. I would like to be able to select all the text in the block of text anchored, cut and paste it into the document where the anchor element is referenced, and then remove the anchor text (now empty) block.

    Any help would be accepted with gratitude

    Thanks Steve

    A full javascript (from the previous post on the forum):

    myDocument var = app.activeDocument;

    Inlines (myDocument);

    function inlines (doc) {}
    var doc.stories = St;
    for (var i = doc.stories.length - 1; I > - 1; i--) {}
    While (st [i].textFrames.length > 0) {}
    var ix = st [i] .textFrames [-1].parent.index;
    St [i] .textFrames [-1] .texts [0] .move (LocationOptions.after, st [i] .insertionPoints [ix]);
    St [i] .textFrames [-1] .locked = false;
    St [i] .textFrames [-1]. Remove();
    }
    }
    }

  • Add a picture to the text in the text box to the location of the cursor through Actionscript and control its reference level

    If I want to add pictures to the location of the cursor in the text box, I need to use EditManager insertInlineGraphic. But insertInlineGraphic offers no parameter to control how an image is placed in the text, such as baselineShift.
    While InlineGraphicElement allows me to well control on image added how is placed in the text through properties such as baselineShift, but then there is no way to add this InlineGraphicElement object newly created as the location of the cursor in the text box!
    So, how do you overcome this limitation? How can I add an image to the text in the text box to the location of the cursor through Actionscript and control its reference level?

    Post edited by: DilipShah

    After you add the ILG, you can find the ILG element by textFlow.findLeaf (cursor location) as InlineGraphicElement and then change its attributes. Or you can just enjoy applyLeafFormat().

    FindLeaf is an important function for navigation in the TLF.

  • Apply effects to the text block and not the text

    I am trying to apply a shadow to a text block, but he keeps applied the effect of text rather than the text block.  I click on the text block, and then effects and shadow and object is selected in the 'Settings For' drop-down box.  However, he maintained the application of the shadow to the text, rather than to the text block.   I am doing this wrong, or is there something else I need to do?

    I use CS4 on Windows Vista.

    Thank you!

    Change your fill of paper or whatever is the shading color.

  • How to make the default text size and line spacing in small Sticky Notes?

    How to make the default text size and line spacing in small Sticky Notes

    Hello

    I suggest that you try the method below and check if it helps.

    Method 1: analysis of auditor of file system (CFS)

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. To perform a scan of the SFC, check out the link: https://support.microsoft.com/en-us/kb/929833.

    Note: the steps for Windows 8/8.1, works perfectly with Windows 10.

    Method 2: clean boot

    A clean boot is executed to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you install a program, an update or when you run a program in Windows. Follow the link to perform the clean boot: https://support.microsoft.com/en-us/kb/929135.

    Kind regards

    Angelo bar

    Microsoft community

  • Thanks for your help. I can look to iCloud by car and see its contents. However I can't iCloud pictures like this to see the content, etc. This is the reason why I wanted to disconnect from iCloud. I had hoped to sign new one

    Thanks for your help.

    I can look to iCloud by car and see its contents.

    However I can't iCloud pictures like this to see the content, etc.

    This is the reason why I wanted to disconnect from iCloud. I had hoped to reconnect and see if I could get then in my photo iCloud content!

    Maybe I have the wrong approach?

    can you tell me if the Photos on my iPad and iCloud photos are one and the same?

    any help appreciated...

    They should be the same.

    To display your iCloud on your iPad photo library you're following the steps below?

    Go to iCloud.com using Safari.

    Keep your finger pressed on the semicircular arrow at the end of the URL bar.

    Press "Ask site desktop."

    Connect to your iCloud account.

    Tap the photos icon.

  • Help! 'remove the rendered JavaScript blocking' and 'leverage browser caching.

    My site Adobe Muse, www.realtorindfw.com, (desktop version) loading fine until yesterday. Now it loads very slowly, I tried to reduce the size of the image, thinking that maybe the problem (even if it used to load incredibly fast even when the images were 4 x greater, so I never thought that). When that didn't fix the problem I typed my website in Google PageSpeed and found that the main problem is that I need to 'remove the rendered JavaScript blocking' and "leverage browser caching."

    It seems that the main problem is that the file, http://webfonts.creativecloud.com/...eue:n4:all; open-without - condensed:n3:all.js, is apparently rendered blocking JavaScript which is causing all the rest to be delayed, because images can not load until this line is resolved and that can take up to a minute. Reading online, it seems that if I could move this line of code to the bottom, then it don't take everything, because no assets would be behind it. I obviously know nothing about good coding (that's why I use Muse). How can I go about solving this problem of render-blocking JavaScript?

    In addition, the issue of "leverage implementing caching of the browser" is that some images have an expiration are associated. I do not think this has nothing to do with me and is rather a kind of problem of Muse. Is there a way can I fix?

    My page was loading fine, until I downloaded randomly once again, and all these problems started. Please type my site in PageSpeed and address the problems of the desktop version and see if you can understand how this can be resolved. This is my professional site, so yes, I'm trying to get it fixed as soon as possible. I also discussed with support chat and they said that the best way to get it resolved would be to post it here. Thank you.

    debp83130756 if your page is slow to load, start a new thread here on the forum, ask for advice on improving the performance of page loading, and include the URL of the page. (A new thread will attract more attention than to post a reply in a thread that has been dormant for more than a year.)

    PageSpeed side has surprisingly little to page load performance as experienced by a visitor to the site and is not related to SEO or your Google page ranking.

    Him "generally render JavaScript blocking" on a Muse page is code that starts to load Web fonts. If it was moved later then the content of your page may appear a fraction earlier, but it appears in the wrong font, and then jump around to settle once the police you wanted has been loaded. Most of the people prefer to avoid content in the police hurt, insofar as that it can be avoided.

  • What gets the relationship between the number of blocks and coherent?

    SQL> CREATE TABLE TEST(ID INT ,NAME VARCHAR2(10));
    
    SQL> CREATE INDEX IND_IDN ON TEST(ID);
    
    SQL> BEGIN
      2  FOR I IN 1 .. 1000
      3  LOOP
      4  EXECUTE IMMEDIATE 'INSERT INTO TEST VALUES('||I||',''LONION'')';
      5  END LOOP;
      6  COMMIT;
      7  END;
      8  /
    
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(USER,'TEST',CASCADE=>TRUE);
    
    SQL> SELECT DISTINCT DBMS_ROWID.rowid_block_number(ROWID) BLOCKS FROM TEST;
    BLOCKS
    -----------
    61762
    61764
    61763         
    
               >> above , there have 3 blocks in table TEST .
    
    SQL> SET AUTOTRACE TRACEONLY;                                     
    
    SQL> SELECT * FROM TEST;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1357081020                                                     
                                                                                    
    --------------------------------------------------------------------------      
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |      
    --------------------------------------------------------------------------      
    |   0 | SELECT STATEMENT  |      |  1000 | 10000 |     2   (0)| 00:00:01 |      
    |   1 |  TABLE ACCESS FULL| TEST |  1000 | 10000 |     2   (0)| 00:00:01 |      
    --------------------------------------------------------------------------      
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
             72  consistent gets                                    >>  there have 72  consistent gets                  
              0  physical reads                                                     
              0  redo size                                                          
          24957  bytes sent via SQL*Net to client                                   
           1111  bytes received via SQL*Net from client                             
             68  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
           1000  rows processed                                                     
    
    SQL> SELECT /*+ INDEX_FFS(TEST IND_IDN)*/ * FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1357081020                                                     
                                                                                    
    --------------------------------------------------------------------------      
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |      
    --------------------------------------------------------------------------      
    |   0 | SELECT STATEMENT  |      |  1000 | 10000 |     2   (0)| 00:00:01 |      
    |*  1 |  TABLE ACCESS FULL| TEST |  1000 | 10000 |     2   (0)| 00:00:01 |      
    --------------------------------------------------------------------------      
                                                                                    
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       1 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              1  recursive calls                                                    
              0  db block gets                                                      
             72  consistent gets                                   >>  there have 72  consistent gets                  
              0  physical reads                                                     
              0  redo size                                                          
          17759  bytes sent via SQL*Net to client                                   
           1111  bytes received via SQL*Net from client                             
             68  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
           1000  rows processed                                                     
    
                                             
    
    SQL> SELECT COUNT(*) FROM TEST;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1950795681                                                     
                                                                                    
    -------------------------------------------------------------------             
    | Id  | Operation          | Name | Rows  | Cost (%CPU)| Time     |             
    -------------------------------------------------------------------             
    |   0 | SELECT STATEMENT   |      |     1 |     2   (0)| 00:00:01 |             
    |   1 |  SORT AGGREGATE    |      |     1 |            |          |             
    |   2 |   TABLE ACCESS FULL| TEST |  1000 |     2   (0)| 00:00:01 |             
    -------------------------------------------------------------------             
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                      >>  there have 5  consistent gets               
              0  physical reads                                                     
              0  redo size                                                          
            408  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    
                                                  
    
    SQL> SELECT COUNT(*) FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 735384656                                                      
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    | Id  | Operation             | Name    | Rows  | Bytes | Cost (%CPU)| Time     
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    |   0 | SELECT STATEMENT      |         |     1 |     4 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    |   1 |  SORT AGGREGATE       |         |     1 |     4 |            |          
    |                                                                               
                                                                                    
    |*  2 |   INDEX FAST FULL SCAN| IND_IDN |  1000 |  4000 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                                                                                                
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       2 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                                >>  there have 5 consistent gets     
              0  physical reads                                                     
              0  redo size                                                          
            408  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    
                                              
    
    SQL> SELECT COUNT(ID) FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 735384656                                                      
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    | Id  | Operation             | Name    | Rows  | Bytes | Cost (%CPU)| Time     
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    |   0 | SELECT STATEMENT      |         |     1 |     4 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    |   1 |  SORT AGGREGATE       |         |     1 |     4 |            |          
    |                                                                               
                                                                                    
    |*  2 |   INDEX FAST FULL SCAN| IND_IDN |  1000 |  4000 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                                                                                              
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       2 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                        >>  there have 5  consistent gets             
              0  physical reads                                                     
              0  redo size                                                          
            409  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    QUESTION:

    What gets the relationship between the number of blocks and coherent? How to calculate become consistent?

    You can see that your uniform is getting down to 6 to 12, is it not? Reading of the below thread Asktom.
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:880343948514

    Aman...

  • Find each text block and the offset of the first base line game...

    Hello world

    I am currently working with InDesign CS2 files and I want to find all the blocks of text and change its first offset from base to the "height of the capitals. So I tried the below syntax and it says error. Please help me for this.

    Thanks in advance

    //==================

    #target InDesign4.0

    myFrame var = app.activeDocument.textFrame.everyItem ();

    for (var i = 0; i < myFrame.length; i ++) {}
    myFrame [i].textFramePreferences.firstBaselineOffset = 1296255087;
    }
    Alert ("DONE");

    //==================

    Concerning

    Indana

    var myFrame = app.activeDocument.textFrames.everyItem().getElements();
    
    for (var i=0; i		   
  • Can I save Firefox by copying the Mozilla folder and all its contents?

    I'm currently back up Thunderbird by copying its folder in appdata/roaming. I can do the same thing to back up Firefox by copying the Mozilla folder and all its subfolders?

    Yes.

    See also:

  • Search the text of paragraph style and place them in the new text block with width 50mm

    Hello

    I'm looking for voor a paragraph to find script dat styles and place them in a new text block with width 50 mm.

    Is there a solution?

    Kind regards

    Patrick

    Width: options General of the frame of the text, GBA: fixed width, then 50mm width

    Height: automatic block text size options

    (These two in the dialog box object styles)

Maybe you are looking for

  • Express the Media Player (EMP) recovery disk - satellite P105-S6024

    I have a problem with my on my new machine satellite P105-6024 express Media Player software. As I bought it, everything works fine. But then, I did the partitions on my HARD drive and I instaled all the software recovery disc. And everything looks e

  • 10.11.3 - missing translation update

    Hello! I just noticed after update 10.11.3 is it some missing translation. Is there anyway to fix or simply wait for a fix in the next update? My system is Danish but the login screen is in English and also when I reboot a part of the text is English

  • How to cancel "follow" to "Communities of Apple Support"

    I confused by clicking 'follow', because there are many 'Apple Support communities' on some some people holding activity appear in my mail box. Please teach me how to undo this error, thank you in advance.

  • Print only

    I just want to print.  When I turn on my HP printer, the only options I see are Photo, Apps and copy.  All I want to do is just print a page!    How to print option.  It can't be that hard!

  • Problem with PCI Express Root Complex

    I bought a hp 15 t - j100 with Windows, but on windows 8.1 8.1 but I needed to change windows 8 and now I have a problem with the PCI Express Root complex code 28. The disks I have download for hp of the site http://h10025.www1.hp.com/ewfrf/wc/softwa