Find the position of the tab

Hi all

I need to find the position of the tab and alignment, and change the following:

1. change the first tab in the paragraph (left align the tab Centre align the tab)

2. change the second tab in the paragraph (left align the tab to right align tab)

Before script:

Screen Shot 2014-05-21 at 1.38.48 PM.png

After the Script:

Screen Shot 2014-05-21 at 1.40.26 PM.png

Hi Siraj,

Try this.

paragraphs var = app.activeDocument.stories.everyItem ().paragraphs.everyItem () .getElements ();

for (var i = 0; i)<>

{

var f = paragraphs [i] .parentTextFrames [0] .geometricBounds

var width = GB [3] - f [1];

TabStops var = .tabStops [i] paragraphs;

{if(TabStops.Length>1)}

TabStops [0] .alignment = TabStopAlignment.CENTER_ALIGN;

TabStops [0] .position = width/2;

TabStops [1] .alignment = TabStopAlignment.RIGHT_ALIGN

TabStops [1] .position = width;

}

}

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • I can't find the tab of Firefox which takes me to edit and print et al, except that I have a little bitty screen.

    I just got a new computer and have changed for windows 8, and the guy put in place with internet explore when I was accustomed to using firefox. My son put on firefox, but I can't find the tab firefox with access to edit, print, print preview, etc., except when I got the box of firefox on three-quarters of the screen, which is too small. How to fill the screen and still give me the small box so I can print? Please do not reply to an avalanche of gibberish, because the understanding of my computer is negligible.

    Hi Senyax, how are enlarge you Firefox when you want more? They will give you different results:

    (1) maximize the window (the middle between _ and X button)

    You should still be able to see the top bar of the window with the orange Firefox button. If you don't see this, one of your Firefox settings files could be damaged.

    (2) full screen (F11 key or the Firefox button orange > fullscreen)

    By default, nothing else that the site displays full-screen mode. Although you can have the tab bar and toolbar display (drag your mouse to the top of the screen and right click on an empty area of the tab bar, then uncheck "Hide toolbar"), you cannot use the orange Firefox menu button in this mode.

  • My Audio icon is suddenly missing from the taskbar. I looked at your answers and am unable to find the tab notification area. Does anyone have any other suggestions? Thank you

    I lost my audio icon - it has just disappeared.

    After having read and followed the steps suggested by other members, I am still unable to find the tab notification area. Are there any other suggestions?
    Thank you!

    Hello

    (1) you still hear sound from the computer even if the icon is missing from the notification area?

    Follow the links below and check if that helps.

    http://Windows.Microsoft.com/en-us/Windows-Vista/show-or-hide-the-notification-area-system-tray

    System icons do not appear in the notification area in Windows Vista or Windows 7, you must restart the computer

    http://support.Microsoft.com/kb/945011/en-us

  • Can't seem to find the tab scrolling in the menu effects (Muse) query. Am I something off or on which does not allow this menu?

    Can't seem to find the tab scrolling in the menu effects (Muse) query. Am I something off or on which does not allow this menu?

    Hi Lana,

    This option has been moved to August 13, 2013 release. You can check all the details here

    Release notes | Adobe Muse CC

  • I can't find the tab to see what version I'm in help. Where the tab?

    I need to be able to find what version of Firefox, I am, at a given time. One source of help that I found via Google says I should "click Help, then select about MOzilla Firefox. The version of the browser will appear on the Info screen. "But I can't find the help tab. Where is he?

    There seems to be a lot more layouts possible these days that there was once.
    Your Firefox is outdated - you will always have the Firefox icon orange in the upper left corner. Help is at the end of the list; About Firefox is the end of the list to help.
    Now, most people will access help via the question mark in the three Bar icon.
    Or, right-click in the toolbar space and check the menu bar. When indicated, the help is at the end of the menu bar.
    To get a more precise answer to your version, go to Options > Advanced Options > update > view update history.
    I have no keyboard shortcuts, but I think that the previous method of help no longer works. Someone may be able to bring us up-to-date.

  • Where can I find the tab Navigator in Oracle JDeveloper Studio (12.1.3.0.0) BPM?

    Hello

    I am a newbie in JDeveloper and especially in the creation of BPM projects.

    My problem is that after creating my Business Process I wanted to simulate it.

    Unfortunately, I realize that there is no BPM Navigator tab next to the tab Application! What has gone wrong?

    Is it possible to find the BPM browser manually (for example in the main menu) and put it on a tab next to the tab Application?

    In general how these tabs work?  for example if I click x next to the Application tab, it will close. How can I restore it? (where can I find this new)?

    I thank very you much for your time.

    Danai

    Hi Danai,

    Release of UN 12.1.3, there is not several tabs BPM. Everything is included in the part projects: SOA, BPM artifacts.

    In the BPM part is where you can find simulations:6 Simulations running in Oracle BPM (12 g Release 1 (12.1.2))

    I hope this helps.

    Kind regards

    Jorgr

  • Where can I find the tab browser Script?

    I need to use the function of Script browser ed. 11.5.9. I'm in charge of Script window, click.  Then select the tab browser Script.  But when I opened the Script window, I can't find a Script browser tab. Can someone help me?

    Thank you.

    Dewey

    Maybe she collapsed against the left side of your window of script - can drag you open from there?

  • Find the tab does not open in FF25

    After installing FF25 the Search tab will not open. CTRL + F or F3 do not open any tab search edit, scroll down to find, click on; nothing.
    Even downloaded FindBar Tweak, nothing helps.
    Using Win Vista.

    Thanks in advance.

    If it works in Mode safe mode and normal mode with all extensions (Firefox/tools > Modules > Extensions) off and then try to find which extension is the cause by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change via "Firefox > Exit ' (Windows: Firefox/file > quit;) Mac: Firefox > quit Firefox. Linux: Firefox/file > exit)

    • If you have many extensions then first turn on half of test extensions that half the problem.
    • Continue to divide the bad half that still has the question until you find that one is causing it.

    Also search you the questions with others find extensions such as FindBar Tweak 1.4.13

  • I can't find the tab display to Zoom in and out! My small got policy and I do not know how to enlarge without zoom!

    My policy on Facebook got suddenly very LOW. In the past, when this happened in Firefox, I simply went to the bar and clicked on DISPLAY and then zoom in or out. NOW, there is NONE of the old wanted and loved tabs at the top of the new horrible page. WHERE is the DISPLAY tab or the zoom FRONT and ZOOM back tab?

    Usually, you have the orange Firefox button or the classic menu bar, but not both at the same time.

    You should be able to switch at the back of this way:

    If the classic menu bar is not displayed, press the Alt key to display it, and then use

    View > toolbars > Menu bar

    to make it persistent. It should replace the orange Firefox button. To switch back, uncheck the box

    View > toolbars > Menu bar

    Does it work?

    ---

    In addition, you can zoom in now the CTRL key and scrolling your mouse wheel. It is an adjustment of finder, but can be more difficult to control.

  • Find the tab - end of line

    Hi all

    I need formula findGrep.

    I need to find every last each tab lines (just find) only. Also, I place the screenshot below.

    4.png

    Please suggest a friend.

    Thanks in advance.

    KS

    Hi, KS,

    It was my solution:

    var curSel = app.selection[0];
    var paras = curSel.parentStory.paragraphs.everyItem().getElements();
    
    for (var i = 0; i < paras.length; i++) {
      var curPara = paras[i];
      var allLines = curPara.lines;
      for (var j = 0; j < allLines.length; j++) {
        var curLine = allLines[j];
        var lastChar = curLine.characters[-1];
        var lastCharContents = lastChar.contents;
        if (lastCharContents == "\t") {
          lastChar.select();
          alert("Match!");
        }
      }
    }
    
  • Help to find the tab "Audio and hardware Configuration"

    I use Adobe Audition 1.5.  One of the solutions to a problem that I have is to check the settings in "Audio and hardware Configuration".  I can't find this tab

    at the Audition 1.5.  Can anyone describe where I can access the "audio configuration"?

    Henryr1490

    In the Options menu. Properties of the device. Then, you have to Wave and wave of the other tabs. Also, you may also need to set device stopped in the same Options menu.

  • I've imported my Internet Exporer 'Favorites', but I can't find the tab to open it and display it.

    The question was about my favorites, I can not find them... Help

    Firefox does not use the term "Favorites", they are known as bookmarks on most browsers other than IE and IE-clones.

    Firefox button > print-> preview before printing and Page Setup

  • I can't find the tab compatibility list!

    I can't run a Middle Earth 2 in the guide it says: right click for the game icon and then click Properties. In the Properties menu, click Compatibility tab.
    But in my computer, there is no compatibility tab. How can I do?

    EDIT: Sorry, I chose windows 7 Forum accidentally. I hope that you do not remove this question.

    to get the Compatibility tab to make sure you do a right click on the file of the game itself and not a shortcut

  • I can't find 'exposure' and 'color correction' because the tabs have changed. It's very frustrating! Help.

    I can't find the tabs 'color correction' and 'exposure' Manual now that I updated to 10.2.3. It's very frustrating! Can someone tell me where are they now?

    Thank you!

    Since 10.2 color Correctiion is now an effect from the effects browser.

  • Cisco SRP527w cannot find the user management tab

    Hello

    Can someone help me? I just bought a new Cisco SRP527w and I'm all new to this type of material. I can't find the tab for user management that I'm changing the default password.

    Also, I can't access the internet. My rj45 of the ADSL modem is connected to the WAN/LAN port with parameters IP static. What missed here? your help is very appreciated.

    Hi Ronald, if you are clicking on all other tabs and it still seems only the setup of the wizard, you must change your internet browser. Try Firefox or IE. This should solve that.

    -Tom
    Please evaluate the useful messages

  • Find the devices tab, then click on 'add a device '.

    I just set up my desire to 4500 and received a page telling me to create an account on hp connected, select the "Devices" tab and click on 'Add a device' then enter the claim code on the printer (which only lasts 24 hours!). I can't find the tab "Devices". Please can you tell me where to look. I see that other people have had the same problem.

    Hello

    When connect to your HP account logged in, you can see 4 big black words just under connected HP. The devices tab is 4th from left.

    Kind regards.

Maybe you are looking for

  • Speed wireless on a Dell Studio problems

    I have a question about my new Dell Studio, the Intel Centrino Advanced-N 6200 wireless card.  I can connect to my router Linksys Broadband-B, but the speed is on all fours (2 members).  I remember having this problem before on another pc, but can no

  • [BSOD] My PC crashed while multi-tasking DMP file Dump analysis required

    Hey everyone I need help trying to figure out why my computer freezes or faces BSOD... C:\Windows\Minidump\122514-14913-01.dmp Is recovered. Link to the dump is https://onedrive.live.com/redir?resid=4A2C6A8186FB95F9%21114 I don't know how to analyze

  • Jabber/MOVI routing over VPN on VCS-E calls

    Hi all I have a problem with the situation to follow. -2 Movi Client via VPN Tunnel on the motorway-VCS connectet -the two VPN tunnel on the same subnet. -Ice set up NO! Now the problem is that the traffic is passing through the VCS-E but goes multim

  • The diagnostic policy Service is not running

    I am running win 7, no major changes. Early on I get this message. I saw the messages about the regedit, but it contains the key to note, however, even if I wanted to add a key, it won't let me!  I'm sick of not being able to run my computer!  PLEASE

  • Implementation of subqueries in the WHERE clause

    Hi allFirst of all, here are the technical info:Oracle JDeveloper 12 c 12.1.3.0.0Studio Edition Version 12.1.3.0.0Build JDEVADF_12.1.3.0.0_GENERIC_140521.1008.SVersion of the component========= =======Oracle IDE 12.1.3.0.41.140521.1008Java (TM) Platf