How to adapt the script to a Jongware for page numbers?

I have an index where

Anne, 3, 5

Mary, 11, 23-24

and converted with the script (for example by adding + 4) does not affect the numbers of hyphen:

Anne, 7, 9

Mary, 15, 27 -24

required: Marie, 15, 27-28


I assumed that the second hyphen with grep of marking + character style could mark a step, but the script asks to select ALL the text.

May be an idea to change the script runs in a second time with these numbers given the style of character or color?


DESCRIPTION:omg page numbers are all wrong!

A Jongware Script 18 -Aug- 2010

If (app.documents.length == 0)

{

Alert ("Oh give me a text to play with :'(");

Exit (0);

}

If (app.selection.length! = 1).

{

alert ('we cannot go on like this. Select some text first. ») ;

Exit (0);

}

myDialog = app.dialogs.add ({name:'omg the numbers are wrong!',canCancel: true});

with (myDialog)

{

with (dialogColumns. add())

{

with (dialogRows. add())

staticTexts.add ({staticLabel: 'firstly to change'});

with (dialogRows. add())

aBox = integerEditboxes.add ({editContents: "1"});

with (dialogRows. add())

staticTexts.add ({staticLabel: "last change"});

with (dialogRows. add())

bBox = integerEditboxes.add ({editContents: "99999"});

with (dialogRows. add())

staticTexts.add ({staticLabel: "Add or subtract this value"});

with (dialogRows. add())

cBox = integerEditboxes.add ({editContents: "2"});

}

}

If (! myDialog. show())

{

myDialog.destroy ();

Exit (0);

}

first = aBox. editValue;

last = bBox. editValue;

step = cBox. editValue;

If (first < 1 | first > last | step == 0)

{

Alert ("now you're pulling my nose arentya");

Exit (0);

}

approx.findGrepPreferences = null;

approx.findGrepPreferences. findWhat = "\\b\\d+\\b";

list = app.selection [0]. findGrep (true);

changes = 0;

for (i= 0; I< list.length; i++)

{

n = number (.silence list [i]);

If (n > = first & & n < = last)

changes ++, list .silence [i] = String (n+ no);

}

Alert ("number of changes:"+ changes ");

My godness, is perfect.

This formula of Grep is a piece of cake!

Example of fake tie is nonsense, but the solution is real.

Thank you very much.

My Monday will begin happy benevolence.

Tags: InDesign

Similar Questions

  • How to write the script in FDMEE below.

    How to write the script in FDMEE below.

    Script below is the FDM Script.How write in FDMEE.

    If (varValues (14) '113101' =) OR (varValues (14) '113201' =) OR (varValues (14) '113301' =) OR (varValues (14) = "252111") OR (varValues (14) '156101' =) then

    Result = "21_asd."

    Please help me on this issue.

    Kind regards

    Satheesh, S

    If you want to determine the id of the target account your opening assignment statement must be:

    Account = fdmRow.getString ("ACCOUNTX")

    As if - elif-instructions else keep lowercase stream operators. If you continue a command on multiple lines, then place parentheses is

    If (account == "113101") or (account == "113201") or (account == "113301") or (account == "113401") or (account == "113501") or (account == "113601") or (account == "215101") or (account == "215201") or (account == "215301") or (account == "215401") or (account == "215501") or (account == "215601") or (account == "252111") or (account == "156101"):

    fdmResult = "21_ADNIP".

    should be (also get rid of the unnecessary parentheses)

    If (account is "113101" account is "113201" or account is '113301' account is "113401" or account is "113501" or account is "113601" or account is "215101" or account is "215201" or account is "215301" or account is "215401" or account is "215501" or account is "215601" or account is "252111" or account is "156101"):

    fdmResult = "21_ADNIP".

  • How to fix the script error message: can not find script file "C:\program files (x 86) \uninstall scripts\creative cloud enterprise\install.wsf»

    How to fix the script error message: can not find script file "C:\program files (x 86) \uninstall scripts\creative cloud enterprise\install.wsf»

    Behalf of the company

    Packer links https://forums.adobe.com/thread/1586021

    http://forums.Adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent

  • How to create the script to compile procedure files in oracle - urgent deadline...

    How to create the script to compile procedure files in oracle.    about to go live and have much .prc pkg in a directory usr/tmp/ar... Po... human resources etc. need to create a script to compile all the files in the folder, then do not open all necessary .prc suggestions on how to do it.   Thank you Tom.

    (1) an urgent need, ASAP,... are words that do not in a forum of volunteer. We are here to help if you need it now, for free, open a SR.

    (2) oracle procedures are not files.

    (3) I think you are trying to run operating system packages, no Oracle procedure. right?

  • How to generate the script to insert data tables present in a

    How to generate the script to insert data from one table in an entire schema under environment sqlplus




    with toads it please help me please!

    905310 wrote:
    How to generate the script to insert data from one table in an entire schema under environment sqlplus
    with toads it please help me please!

    The correct method by using the pump of the database or import/export or unload the data in CSV format for loading using SQL * Loader.

    Generate instructions insert with literals is very bad choices - the bind variable is missing. It will be quite slow because many other CPU cycles are spend on hard analysis. The shared pool will become fragmented. This can cause errors of memory for other applications when they attempt to analyze SQLs for cursors.

  • How to adapt the footer always at the bottom of the page

    How to adapt the footer always at the bottom of the page.

    Concerning

    Well, it's relatively simple. There are blue lines on your page with the small arrows on the blue square on each side. Hover your mouse over them to find out those who define the 'Page down' and 'Footer' (you can also see some to the top of the page header). Set these so that the line "the bottom of the Page" is literally the bottom of the page and move the footer a higher about 2 inches or so, depending on what size you want your footer to be. This will automatically set a footer to stay invariably on the bottom of your page (s) on the site even if widening or narrowing of the sizes of windows. Just another great feature of Adobe Muse

  • How to get the script to a table or view in SQL Developer?

    Dear friends/expert,

    Could you tell me how to get the script from a view or a table easily in SQL Developer as pressing F4 in TOAD?

    I found that I can press SHIFT + F4 to view in SQL Developer and get the script of the view in the Details tab. But how to move the script to the SQL worksheet to change? It is very easy to do in TOAD.

    And I have not found a way to get the script for a table up to now. Is it possible to do?

    Thanks in advance.

    Best regards
    Ning

    There are people a lot better out there to answer on this point than I am - but here's how I do it.

    I'm just in the browser/browser for interest table, choose the script on the right side tab (which shows all the SQL for the table) and then cut and paste what I want or need in my editor window.

  • How to use the script to display the number of columns contain no data

    I have a requirement. There is a source that is the excel, the excel file file, we need to load data into the staging table. There are 5 columns mandatory ones must not be null. We used "No. Data Check" for this. The logic is so mentioned previously mentioned 5 columns don't contain any record that the record will be moved to without data. So far, it is fine. Now the requirement is to show what column or columns contain no data. We used a script to do this like:

    RES =' '

    RES = input1 [0] + ": failed because values null in required columns;"

    INPUT1 [1] = res;

    Output 1 = res;

    But it shows message "down because of nulls in the required columns", which is a generic message. We must show what column or columns does not contain the value "failed because of null values in a column required columnA, columnB or columnC. Can someone help me in this regard. Any kind of help is appreciated.

    You can use the variable inputname1, which keeps an array of names of the entry for the script processor attribute. For example:

    var result = "";

    var first = true;

    for (i = 1; i< input1.length;="" i++)="">

    If (input1 [i] == null | input1 [i] == ' ') {}

    If {(first)

    Firstly = false;

    } else {}

    result += "";

    }

    lead inputname1 += [i];

    }

    }

    If (result.length > 0) {}

    result = "failed due to null values in the following mandatory columns:"+ result; "

    }

    Output 1 = result;

    Kind regards

    Nick

  • How to use the utility disk first aid for hard drive internal el captian

    How to use the utility disk first aid for hard drive internal el captian

    Select the drive and click first aid.

    If something is not repairable because this is the system drive, then you need to start using the recovery partition and run disk utility it.

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • How to maximize the number of RDP session for Remote Desktop connections in windows 2008 server?

    1. How to maximize the number of RDP session for Remote Desktop connections in windows 2008 server?
    2. By default, the system says 2. and to not change/increase.
    3. is everything permissible special necessary to buy?
    Hello
     

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums as it is related to maximize the number of RDP session for Office remote connections to the server. Appropriate in instances of Windows Server.

    Please post your question in the Forums of Windows Server.

  • How to activate the old Windows XP with new serial numbers?

    \How to activate the old Windows XP with new serial numbers?

    You use a retail disk you had?  If so, then the keys do not work due to the fact that they keys of volume.

  • How to make the updates of operating system for the limited user account?

    original title: how to make the updates of operating system for the limited user account?  Limited user account cannot access the Windows Update page, see instead cautioned against MS the most recent must be installed.

    XP Pro SP3 slipstreamed.  New a DBAN nuked HDD installation

    All the OS updates installed from Admin acct before creating the LUA

    AV installed AVAST

    all dot net uninstalled and then reinstalled to resolve a problem installing Quicken

    Updates to auto lit

    Active Windows Firewall

    Three solutions of workaround for Windows XP running as a limited user

    http://blogs.Computerworld.com/16502/three_workarounds_for_running_windows_xp_as_a_limited_user

    Survive a Windows XP Limited user account

    http://techknack.NET/surviving-a-Windows-XP-limited-user-account/

    See the response from Michael Kuntz - re: HAL files

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/thread/e8612ac4-b881-4FB3-85e7-32004932fb5f

    There is an available for installation of SP3 Cd

    Manually installing SP3 using the Microsoft Download Center or a CD

    If you have problems to receive the service pack from Windows Update, you can download SP3 as a standalone package from the Microsoft Download Center Web site, and then install SP3 manually. The installation package is intended for it professionals and developers, but you can always download and install this file.

    You can also order a CD from Microsoft containing SP3. For more information, go to the Microsoft site.

    To manually install SP3 using the standalone package installation or CD

    1. Do one of the following:

      • If you downloaded SP3 from the Web site, to install it immediately, click Open or run and follow the instructions on the screen. To install the program later, click on save and download the file to install it on your computer. When you are ready to install the service pack, double-click the file.

      • If you install SP3 from the Service Pack 3 CD, insert the disc into your computer with your current version of Windows XP running, and Software Update Installation Wizard should appear automatically. If this wizard does not appear, click Start, double-click my computer, click on your CD or DVD drive and then click AutoPlay.

    2. In Windows XP Service Pack 3 page, click Next.

    3. Follow the instructions that appear on your screen.

    4. Once the installation is complete, click Finish to restart your computer.

    5. If you disabled your antivirus software, turn it back on.

  • going on a computer: how to cancel the password which is necessary for the opening of the computer

    How to cancel the password which is necessary for the opening of the computer

    Do you mean that a password is required immediately after you turn on the computer or when you arrive at the Welcome to Windows screen? If the first case, it is a BIOS password and how you disable it depends on what type of computer you have. If the latter:

    Set up Windows to automatically connect (MVP Ramesh) -http://windowsxp.mvps.org/Autologon.htm

    If you would like more information or is not what you mean, please explain your post.

    MS - MVP - Elephant Boy computers - don't panic!

  • How to configure the router Linksys DD - WRT for WVC54GCA E4200

    I don't know how to configure the router Linksys DD - WRT for WVC54GCA E4200. DD - WRT is very complcated. Help, please! Also, I used the TZO.com to the DDNS. Can I set up the DDNS for DD - WRT router? I used the DDNS to my old model router before. Thank you.

    I followed the TZO supporter last night. I can watch my WVC54GCA outside. All solution links:

    http://tzodns.com/support/tutorials/188

    http://tzodns.com/support/tutorials/190

    Hi Majekho,

    Your domain name has decided to 99.245.xx.x. If you go to www.test.tzo.com from the location of the host, you must see this IP address. If these numbers are the same, then all with TZO works correctly. I guess that it is a simple problem with ports (80, 1024) is not open in the router and forwarded to the right internal IP address of the device (for example. 192.168.1.xxx).

    In addition, if you have a DSL, you will need to call your ISP and ask them to show you how to put your modem in "bridge mode". This will disable the firewall in the modem that blocks incoming connections even if you open ports in your router.
    In addition, during the test, it is best to test on your device remotely, this is due to a common problem called loopback with most routers. For more information about looping, take a look at:

    http://helpdesk.TZO.com/cgi-bin/KB.cgi?view=140

Maybe you are looking for