How to insert a signal to find out (all?) script is run?

This script works silently and without advice, but sometimes the double click is not well done.

And the only way to check if the output is export the file, which is a waste of time.

I would insert a line which confirms the action.

app.findGrepPreferences = null;

app.findGrepPreferences.findWhat = "\\l\\l+";

app.findGrepPreferences.appliedCharacterStyle = app.activeDocument.characterStyles.item ("XX");

foundList = app.activeDocument.findGrep (true);

for (i = 0; i < foundList.length; i ++)

foundList [i] .changecase (ChangecaseMode.UPPERCASE);

Thank you:

Hi Camilo,

At the end of the script, add this line:

alert ('Done!');

or, if you're desperate to know how many times the character style has been applied,

alert ('Found ' + i + ' acronyms.');

Peter

Tags: InDesign

Similar Questions

  • How can I help my pc find out which program to open Photoshop CS6 download with?

    I downloaded a .7z file that is supposed to be Photoshop CS6. My computer is unable to establish what program use to open the download with - and I have no idea! I read somewhere that you need to download an .exe so file, but I downloaded it several times now and the same thing. There is no .exe file, I can find. Help, please!

    Hi IdaMari,

    .7z is a compressed file that can be opened in an extraction software. If you are using a windows machine, you can use the software Winrar, Winzip or 7z to extract the .7z file.

    I hope it helps.

    Concerning

    Ludo has

  • Find out all the package and procedure names linked using an array of specifc

    I have 25 packages
    Each package contains 30-35 procedures
    I need to find all packages and procedures
    Each procedure handles the Tables from 5 to 20 according to the need of business rule.
    I need the entire package and related procedure names where a specific Table name is
    (DBA_SOURCE is not objective).
    Quick response appreciated.
    Thank you and best regards,

    It is difficult to help you if you do not want to read what is suggested. The utldtree.sql script will do what you want. Read the first part of the script and it will tell you what it does and how it works:

    >
    REM $Header: utldtree.sql, v 1.2 1992/10/26 16:24:44 $ RKOOI Stab
    REM
    REM Copyright (c) 1991 by Oracle Corporation
    REM NAME
    REM deptree.sql - Show objects recursively depends on given object
    REM DESCRIPTION
    REM This procedure, temp and table will allow you to see all
    Objects REM (recursively) depends on the given object.
    REM Note: you will see the objects for which you have permission.
    Examples of rem:
    REM run deptree_fill ('procedure', 'scott', 'billing');
    REM select * from deptree by seq #;
    REM
    REM Execute deptree_fill ('table', 'scott', 'emp');
    REM select * from deptree by seq #;
    REM
    REM run deptree_fill ("package body ', 'scott', 'accts_payable'");
    REM select * from deptree by seq #;
    REM
    Way prettier REM to display this information only
    REM select * from deptree by seq #;
    REM is
    REM select * from ideptree;
    REM This shows the relationship of dependence via indentation. View
    REM that no order by clause is necessary with ideptree.
    REM RETURNS

    >

    Did you notice the part that says? :

    >
    REM Execute deptree_fill ('table', 'scott', 'emp');
    REM select * from deptree by seq #;

    >
    If you supply a table name, it will display the objects that depend on this table just as you said you want.
    Please try this script.

  • Find out all the colored text

    Hello

    In a large InDesign CS5 document without styles - how can we select all the text in a certain color and apply a paragraph style?

    :-) Nina storm

    Edition > find/replace

    To find

    Implement

    Find Format

    Select the color of character

    Format change

    Select the style.

  • When I installed firefox I lost all info of 'Favorites' that has no filter and I can't find the latest browser. Find out all the this info?

    When I installed firefox I didn't that I loose access to information of 'Favorites' that was on my old browser from microsoft. I got info really important that I can't see how to get now.

    See https://support.mozilla.org/kb/import-favorites-from-internet-explorer

  • find out all the line last character and color fill

    Dear friend,

    I need to find all the last character and fill color of line (no need to the last character of words).

    My code problem: no space in the last character is not the fill color.

    My code is below:

    var myDocument = app.activeDocument;  
    var myLine = myDocument.stories.everyItem().lines.everyItem().getElements();  
    for(i=0; i<myLine.length; i++)  
    {  
        var myCon = myLine[i].texts[0].contents;  
        if(myCon.match(/\n| /gi) != null){  
            try{  
                if(myLine[i].characters.item(-2).fillColor = myDocument.colors[2]);
                }catch(e){}  
            }  
        }  
    

    My screenshot as below:

    last.png

    Please suggest a friend

    Thanks in advance

    KS

    Add a ' if else ' statement to apply the fill color to the second to the last character only if the last character is a space. otherwise apply the fill color for the last character.

    myDocument var = app.activeDocument;

    myLine var = myDocument.stories.everyItem ().lines.everyItem () .getElements ();

    for (i = 0; i

    {

    Chantal var = myLine [i] .texts [0] .silence;

    If (myCon.match (/ \n| IM)! = null) {}

    try {}

    If (myLine [i].characters.item-(1) .silence == "'" ") {}

    myLine [i].characters.item-(2) .fillColor = myDocument.colors [2];

    } else myLine [i].characters.item-(1) .fillColor = myDocument.colors [2];

    } catch (e) {};

    }

    }

  • Find out all the fmb that include a pll.

    I have a few hundreds of forms.
    And a specific library.

    Is there an easy way to quickly identify the fmb having this particular pll attached?
    I don't want to open them in Report Builder, and then click libraries and scan for my library...

    Thank you
    Toon

    Published by: Toon Koppelaars on February 16, 2010 11:13

    Toon,

    I suggest to rename your file pll and batch then recompile all your forms.

    Forms that don't compile should be those who have the attached pll.

    Or there are the forms API / ORCL Toolbox / Caffo / etc looking for tools.

  • How to find out if the new menus or responsibilities have been added to the system

    Dear Sir

    Please let me know how to find out if the menus or the responsibilities have been added to the system.

    OUL5 x 64
    EBS r12 12.0.6

    Thanks-Tom

    It is a unique work, or you should always know when a new menu/responsibility is added?
    If it is a time of employment, then you can write a query on the 2 tables (fnd_menus_tl and fnd_responsibility_tl)

    Select * from fnd_menus_tl where creation_date > sysdate - 7

    Select * from fnd_responsibility_tl where creation_date > sysdate - 7

    If you need to do every time, then you can write an alert.
    Go to a responsibility to Alert Manager > alerts > set
    Process = system administration
    name = my Menu new alert
    Click event
    Check the insert box, clear the check box update
    application = application object library
    Table = fnd_menus_tl (or fnd_responsibility_tl)
    Select = Select responsibility_name in & output1 fnd_responsibility_tl where rowid =: rowid
    or, select user_menu_name in & output1 fnd_menus_tl where rowid =: rowid
    Save
    define an action
    attribute to the set of scripts
    make sure click the alert details and enter installation details

    Hope that answers your question
    Sandeep Gandhi
    Independent consultant
    513-325-9026.

  • How can I find out what version of firefox I use

    How can I find out what version of firefox I use

    https://support.Mozilla.org/en-us/KB/find-what-version-Firefox-you-are-using

    Left thread Firefox Android for Firefox section.

  • How to find out what the police are actually using Firefox?

    How to find out what the police are actually using Firefox?
    Inspect the element don't say what substitute fonts.

    Firefox 24 ESR has the tab fonts in the Inspector, which shouldn't be a problem.

  • How can I find out what that different revisions of Firefox difficulty or address?

    How can I find out what that different revisions of Firefox difficulty or address?

    Hello charlesmiller000, you can see the firefox release notes:
    https://www.Mozilla.org/en-us/Firefox/releases/

  • How can I find out which slows down my macbook pro

    How can I find out which slows down my macbook pro?  What is running?

    Download and run EtreCheck, created by one of his own assistants here in CSA. It is a diagnostic tool that is very useful for us to find problems. It will also give us additional specifications on your Mac. After his execution after the logfile here. It will never contain any personal information.

  • How can I find out if there are viruses on my laptop and how do I clean them

    How can I find out if there are viruses on my laptop and how do I clean them?

    Please provide details as to why you feel that there is a virus on your computer.

  • How can I find out if firefox is locked when I'm on a view of the Bank?

    When I get on an Internet site of the Bank to pay the Bills, how can I find out if firefox is locked if nobody sees what I'm doing?

    Looking for the blue color of the key of the identity of the Site. In addition, you can view the information on this web site by clicking on the Site identity button, the lock appears here.

    https://support.Mozilla.com/en-us/KB/site+identity+button

  • I recently installed 4.0 only to find out it won't work with mac os 10.4.11. How can I recover my previous firefox or at least my favorites?

    I recently installed 4.0 only to find out it won't work with mac os 10.4.11. How can I recover my previous firefox or at least my favorites?

    You can get Firefox 3.6 http://www.mozilla.com/en-US/firefox/all-older.html

    When you install it, it will use your existing bookmarks and other data from the user.

Maybe you are looking for