I need to select all the blocks of text in a document and align text blocks in the back pages left frame margin and the text in the pages front to the right margin.

Hello

Am new to Java script.

Can someone help me out here, I need to select all the blocks of text in a document and align text blocks in the pages back to the left margin frames and text in pages recto at the right margin.

Thank you
Harish

Hi Harish,

Try this.

var doc =app.activeDocument,
    _pages = doc.pages;
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
for(var i =0;i<_pages.length;i++)
{
        txfms = _pages[i].textFrames.everyItem().getElements();
        for(var j =0;j

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • How to select all the text in the document?

    I need to select all the text in a long export to RTF document. I only seem to be able to select a story. Any ideas of how I can do?

    Thank you

    Ian

    Cannot be done. You will need to attach all the text boxes in a long history, or to use the 'ExportAllStories.jsx' script that comes with your installation default InDesign.

    There are other alternatives (each using scripts), and the best way may depend on what are your intentions with the exported file - for example, if you want to read back into their original text after the mounting frames, well, there are ways to do it.

  • How to select all the rows in a Table

    Hello

    JDEV 11.1.1.2.0 work.

    I need to select all the lines all in the click of a button, how can I achieve this? Here is table unique selection/multi selection.

    someone can help me.

    Published by: user5802014 on June 30, 2010 08:32

    Rather than try to direct you to the message that I want to say, I'll just copy the code here with credit to Frank Nimphius

    The post is a hyperlink on the word present in the step 5 post of my "how to search in the forum" :)

    RichTable _table = employeesBackingBean.getEmployeeTable1();
       RowKeySet rks = new RowKeySetImpl();
      CollectionModel model = (CollectionModel)_table.getValue();
      int rowCount = model.getRowCount();
          for (int i = 0; i < rowCount; i++) {
               model.setRowIndex(i);
               //note that in the simple POJO case, the row key is the same
               //as the index. However, it would be wrong to just rely on this
               //because other models or custom table models my return a more
               //comples key. Therefore we iterate over the available rows to
               //obtain the keys.
               Object key = model.getRowKey();
               //add the row keys to the RowKeySet to mark selected
               rks.add(key);
           }
       _table.setSelectedRowKeys(rks);
       AdfFacesContext.getCurrentInstance().addPartialTarget(_table);
    
  • you really need to set up a place to enter bugs.   When you select a page in the Panel of the browser, then select all, the program crashes.   Acrobat CC on el capitan mac.

    you really need to set up a place to enter bugs.   When you select a page in the Panel of the browser, then select all, the program crashes.   Acrobat CC on el capitan mac.

    Hi, Hello, Hello, Hello, bongiorno.

    ==> Feature request/Bug Report Form

    .

  • How to select all the text in the active text block?

    Hello!

    I need a simple script for:

    1. Select all the text in the active frame (ctrl + A)

    2. Paste from the Clipboard (ctrl + V)

    3. go in the beginning new text (ctrl + Home)

    and

    4. Insert the 2 paragraph marks (press enter 2 x).

    That's all.

    I tried, but I'm not not an expert, only good script in DTP and pre-press.

    Thank you.

    Here you go again-

    if (app.selection.length > 0 && app.selection[0].hasOwnProperty ('parentTextFrames')) {
        frame = app.selection[0].parentTextFrames[0];
        frame.parentStory.contents = '';
        frame.insertionPoints[0].select();
        app.paste();
        frame.parentStory.insertionPoints[-1].contents = '\r\r';
    }
    

    Peter

  • by selecting all the blocks of text on all visible layers

    I want to select all the blocks of text on all visible layers.

    the script below will select all the blocks of text, even in groups, but if the layer with the text is invisible the script error. (target layer cannot be changed)

    If (app.documents.length > 0) {}

    var doc = app.activeDocument;

    var numTextFrames = 0;

    for (i = 0; i < doc.textFrames.length; i ++) {}

    textArtRange = doc.textFrames [i];

    textArtRange.selected = true;

    }

    }

    So I made this script to select blocks of text on only visible layers, but now missing text belonging to a group.

    var layerCount = activeDocument.layers.length;

    var docSelected = activeDocument.selection;

    for (i = 0; i < layerCount; i ++)

    {

    currentLayer = activeDocument.layers [i];

    If (currentLayer.visible == visible)

    {

    for (j = 0; j < currentLayer.textFrames.length; j ++) {}

    textArtRange = currentLayer.textFrames [j];

    textArtRange.selected = true;

    }

    }

    }

    can someone tell me why it is not some frames of text bound in a group when made this way and is it possible to get all managers of related texts selected on all visible layers?

    Thank you

    Duane

    Try this:

    if (app.documents.length > 0 ) {
        var doc = app.activeDocument;
        var numTextFrames = 0;
        for (  i = 0; i < doc.textFrames.length; i++ ) {
            try {
            textArtRange = doc.textFrames[i];
            textArtRange.selected = true;
            } catch (e) {}
            }
        }
    

    Have fun

  • Properties tab shows 3609 files, when you select all the files it only shows the files in 1974?

    When I right click and select Properties tab it shows 3609 files, when selecting all the files to copy shows only the files of 1974?

    Hello Tony,.

    If it is certainly a big difference, I think that for most all of this is taken up by folders and subfolders which are mainly empty place holders. Have you looked at the folder with Windows Explorer? A freeware application that can help is WizTree, it provides both a performance graphics and text of what's on your hard drive (or part of it). Can be very educational. Download here: http://antibody-software.com/web/software/software/wiztree-finds-the-files-and-folders-using-the-most-disk-space-on-your-hard-drive/ .

    Let me know if this helps you.

    Kind regards

    BearPup

  • Select all the script maps

    Hi all

    Hoping someone out there can help, I need my script to end with one of the following 3 options:

    Select all: as in "cmd one"

    Select all the objects on the layer "Tabs".

    Select all the objects with the Script title boxes"tabs".

    Reason being, when the script ends I need a bunch of boxes to be pre-selected loan for a manual deselect by 1 point (chosen by the user) and then they Deletes selected objects manually to finish. (I didn't understand my original script here as has no impact on the autonomous part I need for the final selection)

    Hoping that this is a simple script but as it is rare to have a script of object selection and not do something with them, I think it's impossible to create.

    Thank you, Bren

    Read the object model and you will find that the equivalent script Cmnd + A is as follows:

    app.selection = null;
    pItems = app.windows[0].activeSpread.pageItems;
    app.select (pItems, SelectionOptions.ADD_TO);
    

    To select all items in the layer tab page, filter the items in the page:

    app.selection = null;
    pItems = app.windows[0].activeSpread.pageItems;
    
    for (i = pItems.length-1; i >= 0; i--) {
      if (pItems[i].itemLayer.name === 'Tab') {
        app.select (pItems[i], SelectionOptions.ADD_TO);
      }
    }
    

    To select objects with a certain script label is a variant of the (or an addition to) the second script.

    Peter

  • Error when selecting all the columns in the table

    Hi all

    When I write a query by selecting all the columns of the table fromo using * function as well as another new column, I get the error,

    Select *, to_char (hiredate, 'fmday') day

    WCP

    where to_char (hiredate, 'fmday') ('Monday');

    ERROR on line 1:

    ORA-00923: THE KEYWORD not found where expected

    I need all the columns in the table with the column user-defined 'day '. Is there a way I can get the result like this?

    Hello

    padders wrote:

    Alias table to use...

    Or the name of the table, for example

    Select emp.*, to_char (hiredate, "fmday") as day

    WCP

    where to_char (hiredate, 'fmday') ('Monday');

    The bottom line is that * must be qualified (with a table name or alias) when the SELECT clause includes anything else besides *.

  • How to select all the text, all layers including locked or not visible, using VBScript?

    I'm looking for the more elegant syntax through a document and select all the text frames.

    You cannot select objects in... locked or hidden layers, so you will need to unlock/show layer and do what you need to do with the text, while the layer is visible/unlocked.

    to get all the loop text through the text in the object of the document, you will get all the text elements. If you loop through text in a layer object, you won't get the text located within groups.

  • (PS CS3) Select all the text to change the fill color?

    I have a graphic with text: the text was not inserted by Photoshop, and it is not available as text; It's just a part of the graph.  I would like to change the color of the text.

    I can select each letter and each block of punctuation, etc. by using the magic wand and shift + click on each element.  Is it possible, however, simply select all the text - or at least a line full - with one or two moves or orders, vice boredom with a click on each letter, comma, I dot and so on?

    Ed

    If all letters are the same color, magic wand selects all with a click on a such contiguous is disabled in the panels of options at the top of the screen under the main menu.

  • Hi, I have a problem that only happens in Firefox (under IE does not): when I Middle click the mouse it opens a new tab, but it also grow my Web site to the top of the page &amp; I need to drag all the way back to where I was. Please I need a solution! Th

    When I Middle click with the mouse, it opens a new tab and also pushing my website to the top of the page and it's really annoying when I need to drag all the way back to where I was

    URL of your Web site? And an example of a hyperlink that does this?

  • Satellite Pro L40 PSL43E I need to find all the drivers XP

    I need to find all the XP drivers for this laptop in particular. Any ideas where I can find them. on this site, I get only the ' how downgrade "Pease help ASAP.

    If these drivers are available, you will be able to find these drivers on the European driver Toshiba page.

    If the drivers are not available on the European driver Toshiba page, the pilots were not released.

    But I have a suspicion; I found some XP for Sat L40 series drivers. Some series supports the same devices and so the drivers should work also.
    Check some unique XP from different L40 series drivers and maybe he would go.

    Ciao

  • How can I erase whatever it is associated with to Brother DCP-1200. It was added by mistake. I need to erase all the files on my computer related to Brother DCP-1200

    How can I erase whatever it is associated with to Brother DCP-1200.  It was added by mistake. I need to erase all the files on my computer related to Brother DCP-1200?

    You uninstall it?

    I could only partially uninstall the printer. It is not to add printers & devices more. It is not in the list of program. But he is still using a driver. Therefore, I can't fix it just delete it from the Driver list. I don't know anything else to do. Can you give me any suggestions? It makes my computer thinks that it must be installed. JoAnn

  • Need to see all the settings in the bios!

    I have a laptop HP G60 - 247CL

    I just put in 4 gigabytes of ram from corsair gaming super fast! Make sure that the settings are correct on the clock on the cylinder speed. Need to see all the settings in the bios but shows no not the memory clock speed!

    How to unlock bios to display all the freaking parameters. If I knew that HP has locked the bios, I would not have bought this piece of shit!

    I can't get CPU - Z no much, but that does not give me the ability to change speeds of memory. I need to make sure that they correct r. I need to be able to enter the wood to make changes. Locking the BIOS settings is really stupid!

    Message edited by hozer on 10/27/2009 16:26
    Message edited by hozer on 28/10/2009 09:06
    Message edited by hozer on 28/10/2009 09:07

    While the Insyde BIOS that is supplied with the units of G60 is insufficient information, there are other routes, you can take to check your ram timings. I found that the timing of the memory itself with enough accuracy on my G60-235 and was able to check it with CPU - Z and Everest Ultimate. (Which are both a freeware or a functional demo.)

    In particular, I noticed that the adjusted to 5-5-5-15 timings (OCZ DDR2-6400) after replacing the modules Kingston stocks. (Which seems to me to remember turned to 6-6-6-18).

    I hope this helps.

Maybe you are looking for

  • How can I create another button run in vi?

    Is it possible to have a separate in my own vi execution button? I tried to disable some controls in my vi the vi runs, but when I stop running, the controls were not in the same State (always off). This is why I would like to create a housing struct

  • Error 'the database of the Max came out abnormally' in 2010

    The 2010 version installed and ran the MAX 4.7, it gave me this error. It worked fine when I used version 2009 & MAX 4.6. Does anyone have the same problem? I start the Configuration Manager of NOR, but it still doesn't work. I re-install DAQmx 9.2,

  • The missing files computer, need to reinstall Vista, but don't have the disc

    computor bought from second hand, but some of the files are missing, can I reinstall the net without disk * original title - need to reinstall vista Prime Minister but is not disc, I can do online *.

  • Drivers for Windows Server - 4540 ProBook s

    I intend to install a "" "Windows Server edition with"Windows 8". As there are no drivers provided for versions of Windows Server, I want to know if the drivers for Windows 7 or 8 will work in a Windows Server operating system. Thank you

  • Cannot type in capital letters when you use the SHIFT key

    Hello I had this problem with my keyboard this morning. Can I use the SHIFT key to type all in capital letters except for the letters e q you are I p o z x c v Mr. keys for letters work fine, but when I press shift to enter the capital, nothing happe