Is it possible to access a Word from its index by GREP?

I'm writing a script that highlights a specific word in a document: for example 'and '.

So there is a lot of s 'and' in my text, I'm looking for a way to access to the "and" I want to stress (word number 12) by its index using GREP.

Any indeas?

Thank you

Hi Meindel

That's what you're looking for

var doc = app.documents[0], myAnds;
app.findTextPreferences = app.changeTextPreferences = null;
app.changeGrepPreferences = app.findGrepPreferences = null;
app.findChangeTextOptions.caseSensitive = 0;
app.findChangeTextOptions.wholeWord = 1;
app.findTextPreferences.findWhat = "and";
myAnds = doc.findText ();
myAnds[11].fillColor = "C=15 M=100 Y=100 K=0"; // To make the 12th and red

I used the text instead of Greps but you can use the grep findWhat "-<[Aa]nd\\>" which is more accurate. ".

Tags: InDesign

Similar Questions

  • Is is possible to access channels from a database in labview with NI USB 8473 s

    Hello

    I would like to know if it is possible to access a database BOX, which is downloaded through MAX, in labview.

    Specifically, I downloaded my CAN of database to the MAX and I want access to each specific channel in labview.

    IE according to the photo, I would like to have access to the canal of n_Motor_InsRpm of E1_L0_1 (motor speed) in Labview, in order to define and pass a value of speed via CAN. Would this be possible with the NI USB-8473 s? If so, is there a simple example in Labview?

    Thanks for your help

    Charis

    There are several ways to get information from database without the need of hardware. Here's one I made earlier.

    https://decibel.NI.com/content/docs/doc-39793

  • I can't open attachments ._DOC. I tried combining write, wordpad and othereswith without success. I refused access to iexpl because of security settings. I have no WORD from the Office of M. advice?

    I can't open attachments ._DOC. I tried combining write, wordpad and others without success. I refused access to iexpl because of security settings. I have no WORD from the Office of M. advice?

    You must change the extension of the name of _DOC in just DOC. Then you will need a program to open the file; the free Word Viewer, as well as a compatibility pack, if needed, should do the job. How to obtain the latest Word Viewer

  • When I try to access utility 'defrag' from Microsoft, a link to "Diskeeper" is everything that happens with download and purchase required.

    When I try to access utility 'defrag' from Microsoft, a link to "Diskeeper" is everything that happens with download and purchase required.  What is an intrusion to avoid?  It is possible to access the Microsoft defrag utility?

    Glen, have you ever tried to download Diskeeper?

    If so, he may have added something on your computer for access to defragment.

    You're going to start > all programs > Accessories > system tools > Disk Defragmenter and obtaining the pop-up window?

    Check in Add/Remove programs and see if something diskeeper is installed then uninstall it.

    Post back with more information, make and model of the pc, current anti-virus, browser and operating system and the service pack.

    also:

    Download, install, update and do a full scan with these free malware detection programs at:

    Malwarebytes (MMFA): http://malwarebytes.org/

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    After back with the results.

  • Outlook Express has stopped to let me access the internet from an e-mail.

    Outlook express

    A week ago, Outlook Express stopped allowing me to access the internet from an e-mail.  If someone sends you an e-mail with a WEB address, that it does not connect to it just says connection.  Could not find a way to fix this.  If anyone can help.  Thank you

    Hyperlinks do not work in Outlook Express or in Word (revised 29-Apr-09)
    http://support.Microsoft.com/kb/823301

    Hyperlinks do not work in Outlook Express after you put upgraded to IE7 [or IE8] (revised 29-Apr-09)
    http://support.Microsoft.com/kb/929867

    If still no joy:

    With the permission of MVP Frank Saunders. [RIP]

    If nothing happens when you click on a link:
    Open Windows Explorer or on the control panel.
    Go to tools | Folder options | Types of files.
    Scroll to [NONE] URL: HyperText Transfer Protocol (NOT the shortcut URL: Internet) and select it.
    Click Edit or advanced, depending on your version of Windows.
    Choose 'open '.
    Click on change.

    "Application used to perform action" should read:

    "C:\PROGRAM may EXPLORER\iexplore.exe" - nohome (check the path to)
    Iexplore.exe to ensure that it is correct and use the double quotes).

    DDE should be checked and in the boxes below, you should have:

    #1:
    « %1 »,,-1,0,,,
    #2
    IExplore
    #3 (white)

    #4
    WWW_OpenURL

    Protocol URL: HyperText Transfer with Privacy should be the same.

    If the foregoing is correct, uncheck the box: use DDE.

  • Caused by a virus, Microsoft had to reset Microsoft 10. I can't access my Word or Excel files.

    TI due a virus, Microsoft had to reset Microsoft 10. Now, I can not access my word or excel files.

    You say "reset"; do you mean that a clean install was made?

    If a new facility is completed, all the programs installed on the disk are gone. It needs to be reinstalled from their original media.

  • Is it possible to access the files shared in the Simulator?

    My Playbook application creates a few files in the shared files folder. When running my app in the Simulator, is it possible to (read) access these files from Windows?

    Thank you

    First, configure the PlayBook Simulator as a target.

    1. Click on the file-> New-> other...
    2. Expand the BlackBerry Tablet OS.
    3. Select BlackBerry Tablet OS target, and then click Next.
    4. Enter the IP address of the Simulator (or use automatic detection).  Leave the password blank and complete the wizard.

    Once you have the PlayBook Simulator configured as target, use the following steps to access the folders.

    1. Click on the window menu.
    2. Choose the command display see her-> from others.
    3. Expand QNX.
    4. Select target file system browser , and then click OK.
    5. In the target file system browser navigated to the folder that contains the file that you want to copy.
    6. Right-click on the file you want to copy, and choose copy to.  You can also drag and drop files to and from this window.
  • Is it possible to export the contacts from the people on my android phone app?

    I want to be able to have access to all my contacts in my application of people on my Android phone.  I have the phone RAZR M.  Is it possible to export the contacts from the people app?

    Hello

    Welcome to the Microsoft Community Forums. Sorry for the delay in response.

    According to the description you provided, it looks like that you want to export all the contacts within the people App, and import them into your Android phone.

    For which application you want to import the contacts on your Android phone?

    There is no option to export directly to people contacts App but, you can export the web e-mail contacts. E.g. If you have a Live/Hotmail account configured on your application of people then; See the steps suggested by 'Michael_A' or 'Ce Mark' in the next thread that explains how to export contacts of Windows Live/Hotmail on the web:

    http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail-email/how-can-i-export-my-contact-list-to-another/a4aeca00-8d5c-49a3-80C2-5cbaabe59407?msgId=b21ecf03-7181-4E45-b3f2-6b7db72b88d8

    Hope the helps of information. Let us know if the problem persists, we will be happy to help you.

  • Is it possible to access an ADF of MAF application

    Hi all

    I just started to learn Oracle of the MAF.

    Is it possible to access an ADF application that has already been deployed on a CRG oracle weblogic Server?

    or do we need to recreate a similar request just scratching by using features of the MAF?

    Kindly help me with the different possibilities.

    Siva

    Make sure that you add the server hosting the ADF application to the white list of the servers that can use the app to the MAF.

    Oracle ADF 11 g, Oracle of the MAF and developer of Java/J2EE applications: display of Images of the remote server OracleMAF

    Also, make sure the ADF Faces app URL is accessible from the browser on the mobile device on which you run your application of the MAF.

  • Is it possible to access the Data Domain to retrieve records?

    Hello

    I'm using OEID 3.1.

    Today, I was asked if I know not if its possible to access records stored in the domain of data to recover.

    In fact, the question was if there is a way to access the "base" of the field of data to recover the data from there.

    Is this possible? Is there a way to recover the data in the domain of data stored?

    I think only it would be possible to retrieve data but without the column information, only a simple retrieve information by placing a table of results and make an export, but maybe there is a way to make a retrieve data as an export sql, including information on metadata, etc.

    Best regards and thanks for the help.

    Of course, you call the web service server short conversation

    http:// :/short-server/ws/conversation /? wsdl

    with a content application like this:

    http://schemas.xmlsoap.org/SOAP/envelope/"xmlns:ns ="http://www.endeca.com/MDEX/conversation/3/0"xmlns:typ ="http://www.endeca.com/MDEX/lql_parser/types">" "

    en

    RETURN ResultSet AS

    SELECT Attributeto, attributB

    WHERE attributB > 5

    a you will receive a response with content details.

    Is that clear or you need more details?

  • Is it possible to get phone support from Adobe?

    Is it possible to get phone support from Adobe?

    I think to buy http://helpx.adobe.com/x-productkb/policy-pricing/adobe-stores-online-order-payment-faq.ht ml , but not for technical support

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How to access the files from dropbox

    CCan help someone, how can I access my files from the drop-down box and drop it in Adobe sketch?

    It is a very good software but a pain if I can't access my files on dropbox's work.

    Thank you

    Hi Kamal,

    At the present time, it is possible to pull the files of the creative Cloud Files, your Clipboard to device or pictures folder. I don't know what the plan is to add additional options to import.

    Sue.

  • Is it possible to access Dreamweaver cs6 with my creative cloud membership? My teacher uses t

    Is it possible to access Dreamweaver cs6 with my creative cloud membership? My teacher is using that old version and it's hard to follow his tutorials because cc is so different.

    Yes.  Remember to follow the INSTRUCTIONS VERY IMPORTANT or it won't work.

    CS6 direct downloads

    http://prodesigntools.com/Adobe-CS6-direct-download-links.html

    Once you download the trial version, you can activate it with your official cloud creative log - in credentials.

    The version of the CS6 creative cloud (12.2) is a little different from the boxed version (12.0) your instructor is using probably.  Some menu options have changed.  See the link below for more details on what's new ~

    2013.html http://helpx.adobe.com/Dreamweaver/using/Whats-New-Dreamweaver-Creative-Cloud-Release-Feb-

    Nancy O.

  • Is it possible to access the task flow parameter in the EOImpl.create () method?

    Hello

    Is it possible to access the task flow parameter in the EOImpl.create () method? In the affirmative, please let me know how to access.
    FYI... I have a CreateInsert < xxx > activity in the workflow, which, I believe, called the EOImpl.create () method internally. During the creation of the entity, I want to assign a default value based on the parameter of workflow.

    Thank you

    A way to pass parameters from workflow for the model is during the initialization of the workflow. To do this, you can create a prepare() method in the Module of your Application and call it from the workflow. By defining this method by default in your workflow, it will be called every time that the workflow starts. You can pass any task rate desired as the arguments of a function prepare() method. In the prepare() method, save the workflow of the values for parameters in the transient variables EO or VO. These variables will then be accessible in the create() methods.

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

Maybe you are looking for

  • I can't find my i phone on icloud on my mac

    Find my i phone is turned on. On my desk when I check I have cloud find my i phone is not there, find only my mac is here. If I lost or lost my i phone how can I find it on my desk?

  • HP printers: Solution: can't print Microsoft Office documents, or print documents disappear in Windows 7

    Dear all, If you come across printing number where you will be not able to print only Microsoft Office documents or print documents disappear in Windows 7. It is caused by changes to security settings on the user's profile. You can either create a ne

  • HP c 722 deskjet printer running Vista 64-bit

    Can someone tell me if its possible to print using Vista 64-bit with a HP deskjet printer the 722c?   I went through all the troubleshooting techniques and no help.  When I try to print only the flashing and nothing comes out.  Also, is pass an optio

  • Computer thinks I have no disk space left (but I certainly do)

    I had a problem with my computer for a while now. When I played video games or something like that, my computer would freeze occasionally and I hold down the power button just to turn off and on again. Last month, my computer showed that I don't have

  • No its remote desktop Windows 7

    Ideas: I use Windows 7 Professional on two computers (a laptop & one Office). When I remotely on the laptop to activate Office, after activating his "playing on this computer", I have no sound from the desktop computer remotely. I checked the desktop