Selection of specific text by name - JavaScript block

Hello

I'm trying to select a block of text specified by its name and content of the search/change inside by findWhat.

Global search does not work for me on this project:

app.findTextPreferences.findWhat = highlight_data[i];
app.changeTextPreferences.underlineTint = 30;
doc.changeText();

A similar question was answered here - but referring to a solution using Applescript: http://forums.Adobe.com/message/4468076

Thanks in advance!

See you soon

If you want to target just your text block, to do something like this:

myTextframe.changeText)

Peter

Tags: InDesign

Similar Questions

  • Help :) InDesign by selecting a specific text

    I need a simple way to select all the txt with a specific font size. Ex; I want to select all the fonts of 20px. Please I really need help with this one... Thanks in advance

    Use the GREP tab and find/replace.

    Search for. + and the value to search for to find the desired formatting characteristics.

    What are you going to do with this when you find text? You will need something to "change" to each new text or change formatting options...

  • Radio buttons with a specific text necessary to provide in particular for the selection of RB

    Hi all

    Adobe Acrobat 9 Pro.

    1. I'm not sure how to set up this script, because I'm very inexperienced in terms of coding.

    Each radio button has specific text areas to be filled according to the selection of the radio button.

    'Radio Button1' has 4 values/selection (1, 2, 3 and 4).

    Note: Option 4 has 3 separate text boxes must be filled (proposal4, Text5 and Text6).

    If a user selects 1: Text1 should be filled and no admission for Text2, Text3, proposal4, Text5 Text6.

    If a user selects 2: text 2 must be filled in and no entry for Text1, Text3, proposal4, Text5 Text6.

    If a user selects 3: text 3 must be filled in and no entry for Text1, Text2, proposal4, Text5 Text6.

    If a user selects 4: Test 4, Text5 and Text6 must be filled in and no entry for Text1, Text2, Text3.

    When I'm saying no entry, basically locked or will receive an error if the data is inserted.

    2. I am also uncertain where I would like to insert the code and how it works.

    Thank you in advance,

    Josh

    For the example given and newness to the coding, you might try to display / hide the fields instead of scripts. An example is attached.

    Discover the activities of each of the radio buttons. Basically, for each choice of radio, corresponding text fields will be displayed or hidden. (The default property for each text field is hidden.) Each choice will remove the text field data previous choice via a form of reset action applied to these fields.

  • 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

  • Text file name selection

    I would like to be able to select and copy the file names so that I can paste the name into my finder to search for. I know you can do a right click on a picture and click on 'Show in finder' but if the images has an exclamation mark on it because lightroom knows not where is the photo, it it will appear in the finder. To update the location of the image, I need to know where is this place. I have several hard drives, and in order to find this place, I do a search for the name of the file finder. Given that the name of the file is long enough because I have my first name, the date, and the sequence number in the file name, it's a pain to always have to type the name of the file in the finder. I would like to be able to copy and paste the name.

    Thank you very much

    Josef,

    You can copy the name of the file of the photo selected in the metadata Panel, in the right column:

  • How can I find and remove a specific text in a PDF document?

    Hello. Sorry for my English (I'm from the Russia))

    There is the problem - how to find specific text in a document (in my case, it - all the numbers (0-9)) and remove, using javascript?

    And I would like to know also - is a function of search with regular expressions?

    And more importantly - how to remove the text based?

    is this possible?

    document is so great, that if I manually delete the numbers - I'll do it for a month!))

    Thank you!!!

    You can use a regular expression with the "words" individual who is returned by JavaScript.

    Suggestion of Leonard, in Acrobat 10 select: Tools > Protection > Search & delete text (sorry, I don't know what it would be in Russian)

  • How to select a specific channel in another file?

    Hello

    I have several tdv-files (~ 100) I want to analyze for a specific channel. All files have the same structure with the same channels. With tiara, I can load all the files at once to see the files in my dataportal.

    What I want to do is to select a channel x for each folder and view data in a graph or using. It works if I select each channel by hand, but it's a lot of work if I have about 100 cases. Is there an easy way to select a specific channel for all my files at once?

    Thanks in advance

    Hello

    I don't know a file with the extension tdv format. There is also no use on the site of National Instruments, so I think that it's a typo.

    If you are able to open the files, you are also be able to use the tiara serche.

    Take a look at this screenshot:

    I search for all files named TR_M17_QT data *, the name of the Group * superior and the name Temp_B channel. If you display only the channels, you can select all strings in the list of results a trail of the channels in the data portal.

    Best regards, Stephan

  • How to select a specific column in a bean method?

    Hey everybody,

    I am trying to select a specific column in my table of the adf so that I can hightlight those I can after that, with a pod of method that only one game from another table. I use JDeveloper 12.1.2.0.0.

    Here is my table at the moment (this is a static list that Alejandro and Timo helped me to create, thanks to them once again!):

    < af:table value = "#{bindings." Var Anos1.collectionModel}"="row ".

    lines = ' #{bindings. " Anos1.rangeSize}.

    emptyText = "#{bindings." Anos1.viewable? "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0' fetchSize = "#{bindings." Anos1.rangeSize}.

    filterModel = "#{bindings." Anos1Query.queryDescriptor}.

    queryListener = ' #{bindings. " Anos1Query.processQuery}.

    filterVisible = 'false' varStatus = 'vs' id = 't5 '.

    styleClass = "AFStretchWidth" columnSelection = "multiple".

    inlineStyle = "" max-width: 100%; "columnStretching ="multiple""

    columnSelectionListener = "#{ControlBean.onAnoColumnSelect} '"

    disableColumnReordering = 'true '.

    Binding = "#{ControlBean.dimAnos}" >

    < af:column sortProperty = "#{bindings." Anos1.hints.A2011.name}.

    filterable = "true" sortable = "false".

    headerText = "2011".

    ID = "c54" width = "16%" >

    < af:outputText value = "#{rank." A2011}.

    shortDesc = "#{bindings." Anos1.hints.A2011.ToolTip}.

    ID = "ot54" >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " Anos1.hints.A2011.format}"/ >

    < / af:outputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." Anos1.hints.A2012.name}.

    filterable = "true" sortable = "false".

    headerText = "2012."

    ID = "c55" width = "16%" >

    < af:outputText value = "#{rank." A2012}.

    shortDesc = "#{bindings." Anos1.hints.A2012.ToolTip}.

    ID = "ot55" >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " Anos1.hints.A2012.format}"/ >

    < / af:outputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." Anos1.hints.A2013.name}.

    filterable = "true" sortable = "false".

    headerText = "2013".

    ID = "c56" width = "16%" >

    < af:outputText value = "#{rank." A2013}.

    shortDesc = "#{bindings." Anos1.hints.A2013.ToolTip}.

    ID = "ot56" >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " Anos1.hints.A2013.format}"/ >

    < / af:outputText >

    < / af:column >

    < / af:table >

    I deleted some of the columns, because they are all equal, and in doing so, you have fewer problems in reading.

    In my method, I have a matchEm, but I'm trying to select a column using this line:

    dimAnos.setColumnSelection ("A2012");

    dimAnos is the link to my table Anos (years in Portuguese). I even tried other values FRO the columnSelection but I just couldn't do it selected. I'm doing something wrong?

    Please help me or give me an idea how I can do this.

    Kind regards

    Frederico.

    Hi Frederico,

    The setColumnSelection method is intended to define whether or not your table supports the selection of columns. It does not select the column. In order to select the column, you must set the attribute column selected to true. So I don't know if its an option for you, but you can create a link to all the columns that you have in you bean and then call the method A2012.setSelected (true) and then add a partial target table for makes re and display the selected column.

    Hope this helps

  • Is there a way to auto check a checkbox triggers production of a specific text box?

    I use Conga composer. I hope that when the information are filled in a specific text box in a pdf file, it will auto check a specific box.  Script ideas? Or, if this is even possible? I've seen scripts for the return, but my situation requires this particular traffic.

    You add those by going to tools - JavaScript - Document JavaScripts. Create

    a new item (call it "scripts", let's say), then remove the default function

    definition of who is there and paste your code instead.

    This code will be executed whenever the file is opened.

  • Is there a way to make a box cause necessary specific text fields?

    I am looking for a way to make a "Yes" box when checked, cause specific text fields switch of the not required required.

    You could repeat the line several times, for example

    getField("Text2").required = event.target.value = "Yes"? true: false;

    getField("Text3").required = event.target.value = "Yes"? true: false;

    getField("Text4").required = event.target.value = "Yes"? true: false;

    etc.

    Simply change the names of the fields to your form.

    There may be better ways to generate scripts, but the works above.

  • How to open the pdf 3D with selection of specific models of url link

    I assumed that this feature is not supported, but let me ask you one thing.

    I'm looking for a way to open the pdf 3D with selection of specific models of url link.

    For example, the following link is opened, if LC to open 3d.pdf with automatic selection of the model 'abc' in the model tree?

    http://example.org/3D.PDF#model=ABC

    If this can be done in javascript, it is really useful.

    Impossible. There are only very limited for the Acrobat family command line options and you cannot change the.

  • How to check if the selection is any text tho:

    Ok.. Another question:

    How to check if the selection is any text tho:

        if (app.documents.length != 0 && app.selection.length != 0 &&

         (app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))

    but sometimes the selection is 'textStyleRange', sometimes 'character' etc. is there a shortcut to check both?

    I usually do something like this:

    if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) )
         alert ( "It's a text!" );
    

    Hope that helps.

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • (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.

  • SELECTED ON HOVER TEXT EFFECT

    Hello

    Please could I have help with the CSS styles on a certain text effect? I have a width of the box "x" with a list of text links; what I would do, using CSS, if possible, is to display the selected text when hovered over. I would like if possible the width of the box to be selected as well as the text, IE. text in blue on a light blue background, hovered on - white text with a dark blue background that extends the width of the box.

    I have been dabbling with Dreamweaver etc for a while now, but have been getting away with the basics and would like to extend my knowledge of code etc.

    Why I don't want to use images etc. so I need to do this effect in several languages.

    I hope what I'm asking, it's clear and look forward to your response.

    Thank you very much!

    On 04 Apr 2007 macromedia.dreamweaver, Jinx wrote:

    > here you go...
    >
    > link is http://www.sinclair-intl.com/NEW/pages/labels_main.htm

    -Remove the
    The list of links tags
    -Add to the CSS:

    {a.quick_link_but_highlite_2}
    color: #004489;
    Police-family: myriad, Arial, Helvetica, Verdana, without serif.
    do-size: 12px;
    padding-left: 10px;
    padding-right: 29px;
    line-height: 20px;
    text-decoration: none;
    display: block; / * Add this line * /.
    }

    You can play with the line height to get the desired spacing.

    --
    Joe Makowiec
    http://Makowiec.NET/
    E-mail: http://makowiec.net/contact.php

  • I can't select or copy text on Firefox for Android 26.0.1 (device: Samsung Galaxy Note 2) OS: Android 4.3. Long press on the text does not work. )

    Can't select or copy text on Firefox for Android 26.0.1.
    Device: Samsung Galaxy 2 Note.
    OS: Android 4.3.
    Long press on the text does not work.

    I would ask someone to check that...

    I'm glad to hear that your problem has been resolved by using the beta version.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

Maybe you are looking for