find and change between the two

I want to change in my text frames written in the style of paragraph text "EBT".

Between 1 to 3 of the text 'ABC '.

Between the 4 and 7 'BIM' text

Between 7 and 10 'KLM '.

must write

where and how a mistake

var myDoc = app.activeDocument;
var myFrame = myDoc.allPageItems;
for(var i=0;i<myFrame.length;i++){
//if(myFrame[i].appliedObjectStyle == tmc) {
//if(i==5){break;}
app.findGrepPreferences = app.changeGrepPreferences = null; 
app.findGrepPreferences.appliedParagraphStyle = "myParS";
app.findGrepPreferences.findWhat = "EBT";
if ((i > 0) && (i <= 3)) {var changeX = app.changeGrepPreferences.changeTo  = "ABC";}
if ((i > 3) && (i <= 7)) {var changeX = app.changeGrepPreferences.changeTo  = "BIM";}
if ((i > 7) && (i <= 10)) {var changeX = app.changeGrepPreferences.changeTo  = "KLM";}
myFrame[i].texts[0].changeGrep(); 
app.findGrepPreferences = app.changeGrepPreferences = null; 

Dirty solution... ;-)

var myDoc = app.activeDocument;
var myFrame = myDoc.allPageItems;

for(var i=0;i 0) && (j <= 3)) {app.changeGrepPreferences.changeTo  = "ABC"; myFrame[i].changeGrep(); }
    if ((j > 3) && (j <= 7)) {app.changeGrepPreferences.changeTo  = "BIM"; myFrame[i].changeGrep(); }
    if ((j > 7) && (j <= 10)) {app.changeGrepPreferences.changeTo  = "KLM"; myFrame[i].changeGrep(); }
    app.findGrepPreferences = app.changeGrepPreferences = null;
}

Tags: InDesign

Similar Questions

  • What is the difference between the brush and the BLOB brush and I can't change between the two in hindsight?

    I've been using illustrator to create a model complex of medieval sources, its irregular so I had to get physically using my Tablet rather than forms. However, I just realized that one section, I drew with the Brush tool to paint instead of the form of the task I had used. I don't know if I used the right tool at first, but now the sections don't fit on the overall picture even if they have the same size of pt etc. Can I change something how they were drawn quickly, or I have to redraw the object? Sorry for my naiveity that I am just learning.

    The blob brush draws stokes immediately deployed in forms.

    The Brush tool draws paths that have a stroke applied. So you can easily change the path, and you can change all the options (including the option to apply a totally different brush) brush.

    You can expand easily just the brush stroke. Select all the paths that you have drawn with a Brush tool and use the object > expand apperance. Based on the other blob brush settings, you may also use pathfinder functions to combine all forms.

    You should read the help on the Tools pages:

    https://helpx.Adobe.com/Illustrator/using/brushes.html

    https://helpx.Adobe.com/Illustrator/using/painting-fills-strokes.html

    Illustrator help | Using the form of task and Eraser tools

  • can I have both versions installed and switch between the two

    Can I have two different versions of firefox are installed and switch between them? If so, how do I set up.

    Yes, I have several versions of firefox are installed. Firefox 3.6 is always taken in charge and course, there is the beta, the Aurora and the roads every night. I'm guessing that the other default channels install in clean places out there rather than overwrite your current installation, if not choose the custom installation option.

    This is something advanced, generally used by developers etc.

    CARE do not uninstall and take an option to remove personal settings, but that is written, as that attempts to remove all the profile data for all versions Firefox installed, you will lose the passwords and bookmarks etc..

    Use unique profiles - where Firefox stores your bookmarks, passwords and other user data for each version, or you will have problems.

  • Find the difference of pressure between the two transducers using a NI DAQ 6008

    Hello

    First of all, I'm a relatively inexperienced LabVIEW Developer, so my apologies in advance if this message does not have something, or otherwise lacks clarity.

    I try to develop a VI as follows the pressure difference between the 2 EME 3100 pressure sensors (4-20 my), related to two different pressure lines, using a NO-DAQ 6008. I would like for the acquisition of data to read the two transducers, then have him find VI the differential and write this differential in an Excel file.

    The data sheet for these sensors may be found at: http://www.gemssensors.com/Products/Pressure/Pressure-Tranducers/Sputtered-thin-film/~/media/GemsNA/...  It is a 3-wire system, with a voltage between 8 - 24V. I use an external power supply of generic brand to power sensors, which provides a maximum of 24V @ 4A.

    I drifted my physical connection (for the two transducers) this thread http://forums.ni.com/t5/LabVIEW/I-am-having-trouble-Omega-PX4200-Pressure-Transducers-to-where-I/m-p... and am relatively certain of the accuracy of the information. For purposes of signal conditioning, I use a 500 Ohm resistor between the signal of each transducer and the Earth wire.  On the side of software, I use the latest version of LabVIEW (2011) as well as MAX on a Windows 7 64-bit machine.

    In an ideal world, the sampling rate would be as high as possible, but 4 samples per second would suffice for all purposes useful.

    Given this goal, are there any sample of VI (especially for MAX, which I have not yet used) who would be similar/applicable to this project, specifically, regarding setting a sampling frequency, calibration of the transducers or affecting the pins/channels appropriate? All resources would be greatly appreciated.

    Kind regards

    MG Wilkinson

    Measure the voltage between the two resistance (resistance by probe 4-20 MA) using the differential inputs of the x 600.

    When you configure the task, you can read several entries at once, by entering in "Dev_ / AI0:1" in the physical channels and using the "several channels / {unique |}". multiple} samples"polymorphic instance.

    600 x can read 1kS/sec.

    Do maths/conversions on the table, and then simply subtract the two tables.

    Could also take some samples (10-100) at 1 kHz and their average together, give you a smaller rate effective sampling but with less noise.

    A loop of producer-consumer would be good architecture here, let the daqmx reading live in a loop and sends the data via a queue to a 2nd consumer that performs mathematical operations and write to a file.

  • Interactive report - is possible to find and change if necessary the unique column.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    33ac2d45-960f-45AF-acba-507f01d18e08 wrote:

    Please update your forum profile with a real handle instead of '33ac2d45-960f-45af-acba-507f01d18e08 '.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    Query Builder
    Link to the simple view row Yes No
    Uniquely identify lines Single column ROWID
    Single column

    Yes. You can change this using the only the lines identified by / Unique column interactive properties in the section of the column of link in the attributes of the report definition report tab.

  • The difference between the two copies and Clone?

    I make a copy of an existing symbol. On the Edit menu, they have Dulicate and Clone to achieve this. What is the difference between the two? As far as I can tell, if I select the clone, it puts a copy of the object directly on top of the selected object to copy. If I select duplicate it offered the copy is not directly above the original to copy object. What is the difference?

    Well Yes

    Jim Babbage

  • I have CC installed on PC can I use creative cloud on the iPad Pro with a smooth transition between the two?

    Hey - I hope you can help. I'm under CC on a PC and I buy an iPad pro. Can I perfectly send/receive the vectors/graph between the two devices - in other words is going to talk about Apple and Microsoft to another. So if I'm with a client and then come home can I download/send what I did on my ipad and continue to work on my PC?

    Sorry to sound stupid, but I can't seem to find real answers anywhere.

    Thank you!

    Hi Vicki,

    You can use Adobe Creative Cloud on your desktop (PC Win) and also on your device (iPad pro).

    Just be sure that PC supports the desktop versions of the apps (desktop applications Adobe Creative Cloud|) Adobe Creative Cloud ) and the iPad device will support mobile applications (Mobile Apps ).

    You can synchronize the work on one of the applications to the course in the library of creative cloud in order to adapt them to another application.

    Hope that helps!

    Kind regards

    Sheena

  • Switch between the two button symbols

    Hello

    I'm new to AS, but not new to programming.  I'm using Flash CS4.  Here's what I'm trying to do.

    I have two button symbols, PlayBTN and PauseBTN. They are used to control the playback of the slideshow. When I use one or the other to control the slide show, it works. However, what I want to do is to switch between the two buttons, so that they work together like this:

    1. If the slide show is playing, PauseBTN is visible. If PauseBTN is clicked, stops slideshow and PlayBTN becomes visible.

    2. If the slideshow is paused, PlayBTN is visible. If PlayBTN is clicked, stops slideshow and PauseBTN becomes visible.

    In other words, clicking on the button control not only the slideshow, but changes which button is visible.

    I got this working with a video clip of two frames and bitmaps in static, but when I swap the bitmaps for the buttons, rollovers button stop working.

    Can someone give me some advice please?

    ... Mike

    This is not a flexible configuration.  PauseBtn should be a movieclip with a up more and eventually to the bottom of chassis and PlayBtn either a movieclip with a up more and eventually to the bottom of the frame.  You can then use:

    PauseBtn._visible = true;  or false ot visible property of your control button.

  • Torn between the two

    Right now, I currently own a normal laptopn who weighs about 5 lbs. Computer of mg is a pain to get to school or to visit family in the city. Lately I've been saving up for a new device. An iPad or a Macbook? I'm torn between the two. With the iPad, I still keep my computer (which I've had since 2013) and use of the iPad to do on the go with naoual or buy a new computer in her car again

    Thoughts?

    The decision between a laptop and an iPad must be made according to what you are going to use the device for, and what limits you can live with. You do not have access to the internal file system of an iPad, so you should have save things in different places. Many have things saved in a particular application, or you can use things like Dropbox. The iPad does not also allow to connect to an external device such as a USB key. Internet access must be a wi - fi connection, because you will not be able to plug an Ethernet cable into the iPad, if you are in an area where there is no wi - fi, except if you have an iPhone you can attach to internet access. While a lot of newer laptops have no CD/DVD players, you can buy those external that connects via the USB port, which is something other non available for the iPad.

    I suggest make you a list of what are your needs and desires and then compare the specifications of the two types of devices to make your decision. I just you provided with a couple in the thought process.

  • I can't stop finite samples daqmx read between the two?

    Hi all

    I want to read data from 10 seconds to a trigger is received. for this im using daqmx task finished sample mode and read the data on the trigger getting. It works fine but I can't stop my vi between the two when its reading of the data. I have to wait for it to complete the reading of values, and then stop the vi.

    so I switched to continuous sampling mode that allowed me to stop the vi whenever I want.

    I just want to know is there any means or the property using which I can stop my task over daqmx read when I want?

    I guess you call DAQmx Read with extraordinary value (-1) for samples of #.  It is also the default if left thread continues.  In a finished sample task, it means to wait until the memory full buffer has been filled with samples before returning.  Once you make that call, you cannot directly finish soon.  You're stuck waiting for buffer fill or for the timeout expires (default 10 seconds).

    One way to avoid getting stuck is not to ask for samples that do not exist already.  You can query a DAQmx Read property, known as the "Samples available" or something like that and son of this result in a call to DAQmx Read.  Such a call will return immediately whatever data are currently available.  Subsequent calls will give you samples.

    -Kevin P

  • Seagate installs but I can not find and cannot open the unit to see my files

    whenever I installed my seagate freeagent go drive.. initio default controller is the one that pops up saying ready for use, but I can not find and cannot open the unit to see my files, I can see it as (which I think it's maybe) in devices, printers as 'Initro Default Controller.

    The disc may need a drive letter must be attributed. Please try the following link to assign a drive letter to the drive.

    http://Windows.Microsoft.com/en-in/Windows7/change-add-or-remove-a-drive-letter
  • How to count the number of Sundays between the two dates

    Hello

    I want the number of Sundays between the two dates

    example of

    number of number of Sundays between 4 January 2013 ' and April 30, 2013 "in a select query, I have to include this as a sub query in my select statement.

    nordine B wrote:
    Hi Frank,.
    Have 1 doubt...

    In many countries the week could me "Monday". How the application handles it?
    Or did I get something wrong?

    Help, please!

    For ' IW'(ISO week) early in the day is always Monday...

    It's so simple - calculate the weeks between two dates based on Monday... This is the number of Sundays...

    NEXT_DAY is another option...

    SQL> with dd as
      2  (
      3      select TO_DATE('01-04-2013','dd-mm-yyyy') fdt, TO_DATE('30-04-2013','dd-mm-yyyy') ldt from dual
      4  )
      5  SELECT       fdt,ldt,
      6            (next_day(ldt,'sunday')-next_day(fdt-1,'sunday'))/7 sdays
      7  FROM         dd;
    
    FDT       LDT            SDAYS
    --------- --------- ----------
    01-APR-13 30-APR-13          4
    

    Published by: JAC on May 2, 2013 12:20

  • Switch between the two alternative provisions (both in portrait mode)

    I have created two alternative facilities for the purpose of these two being in portrait orientation, as they are to view the same article in two different languages. Is there a way to switch between the two using the navto: / / action or by using bookmarks and by using the go to destination. I tried both but I was wondering if there was something there.

    I have a publication ideally appearing in both languages, though being a main language and the seconary being there only for reference. I'm not wanting to produce two folios and use the filter region with Apple, as have the secondary language, as a reference is a selling point for the publication. Also using"States" would be more complicated.

    He must choose between non-ideal solutions, as a magical sticky toggle 'use this language' is not available.

    If you do mind ' t using the rocker on each page, then navto would be OK. and each page of the reference language should have a back button go. All reference pages that can be marketed after the main pages, and each of them can be hidden from OCD.

    If you opt for parity between languages, then you could start the app with no menu-swipable selection page, where you can decide what language to use. At the end of these two sections, another non-swipable page would give you the choice to read another language. The trick of no-swipable page gives users a feeling of an application of the only language of his choice.

    And I would use diapers, not another layout for the production. Seems to be a cleaner solution for me.

  • The merger between the two images with the control points? Novice request

    Hi all

    I've seen a tutorial that describes exactly what I want to achieve, but can't for the life of me remember of it called or how to do it.

    Basically, I have two images of the map I want to put in a short film. During the transition between the images, instead of simply melted into a single image I want that they "sink" in the following image.

    The tutorial I've seen used Premiere Pro and "checkpoints" that match between the two images showing where things moved too.

    I am barking the wrong tree? I will reply cheerfully questions in an attempt to better describe this. I apologize for the vagueness of the topic.

    Tom

    For a quick and dirty overview using the track Matte Keying, see this glance for this purpose: https://vimeo.com/user17132571/review/69330020/8f4fc79c86

    Hunt

  • Gaps and spaces between the slices in Dreamweaver

    I'm running OS X 10.5.8 on a MacBook Pro using Photoshop, I created my Web page (with the predefined html specifications) and ruled the areas I wanted to make connections. Once I said to create links, he showed gaps and spaces between the slices. After I transferred my site page is OK in Safari and Chrome, but firefox runs spaces will appear again. What should I do?

    Here is my code:

    < html >

    < head >

    Book of the < title > Brad Hager < /title >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    < style type = "text/css" >

    <!--

    @import url("/site_layout.css");

    a: link {}

    text-decoration: none;

    }

    a: visited {}

    text-decoration: none;

    }

    a: hover {}

    text-decoration: none;

    }

    a: active {}

    text-decoration: none;

    }

    ->

    < / style >

    < / head >

    < body bgcolor = "#FFFFFF" leftmargin = "0" topmargin = "0" marginWidth = "0" marginheight = "0" >

    <! - except for the Web Slice (mybookonline.psd) components - >

    < table width = "1025" height = "769" border = "0" align = "center" cellpadding = "0" cellspacing = "0" id = "Table_01" >

    < b >

    < td colspan = "5" > < img src = "images/mybookonline_01.jpg" width = "1024" height = "20" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "20" alt ="" > < table > "

    < /tr >

    < b >

    < td rowspan = "6" > < img src = "images/mybookonline_02.jpg" width = "3" height = "748" alt ="" > < table > "

    < td > < a href = "/ JPEG/Brad Hager portfolio/index.html" > < img src = "images/advertisingportfolio.jpg" width = "201" height = "16" alt ="" > < /a > < table > "

    < td colspan = "3" > < img src = "images/mybookonline_04.jpg" width = "820" height = "16" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "16" alt ="" > < table > "

    < /tr >

    < b >

    < td colspan = "3" > < a href = "/ stamp_resume.html" > < img src = "images/resume.jpg" width = "216" height = "15" alt ="" > < /a > < table > "

    < td rowspan = "5" > < img src = "images/mybookonline_06.jpg" width = "805" height = "732" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "15" alt ="" > < table > "

    < /tr >

    < b >

    < td colspan = "2" rowspan = "2" > < a href = "/ video.html" > < img src = images/creations.jpg"" width = "203" height = "15" alt = "" > < /a > < table > "

    < td > < img src = ' images/curriculum vitae - 09.jpg' width = '13' height = '2' alt = "" > < table >

    < td > < img src = "images/spacer.gif" width = "1" height = "2" alt ="" > < table > "

    < /tr >

    < b >

    < td rowspan = "3" > < img src = "images/mybookonline_09.jpg" width = "13" height = "715" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "13" alt ="" > < table > "

    < /tr >

    < b >

    < td colspan = "2" > < a href = "/ creations.html" > < img src = images/email.jpg"" width = "203" height = "17" alt = "" > < /a > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "17" alt ="" > < table > "

    < /tr >

    < b >

    < td colspan = "2" > < img src = "images/mybookonline_11.jpg" width = '203' height = "685" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "1" height = "685" alt ="" > < table > "

    < /tr >

    < b >

    < td > < img src = "images/spacer.gif" width = "3" height = "1" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "201" height = "1" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "2" height = "1" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "13" height = "1" alt ="" > < table > "

    < td > < img src = "images/spacer.gif" width = "805" height = "1" alt ="" > < table > "

    < td > < table >

    < /tr >

    < /table >

    <!--end Save for Web Slice components-->

    < script type = "text/javascript" >

    var (("https:" == document.location.protocol) = little? " ") https://SSL ." : " http://www .");

    document. Write (unescape ("% 3Cscript src ='" + little + "some google-analytics.com/ga.js type = ' text/javascript' %3E%3C/script%3E"));))

    < /script >

    < script type = "text/javascript" >

    try {}

    var mouseover = _gat._getTracker("UA-xxxxxx-x");

    pageTracker._trackPageview ();

    } catch (err) {} < /script >

    < / body >

    < script type = "text/javascript" >

    var _gaq = _gaq. [];

    _gaq.push (['_setAccount ', 'UA-10172368-3']);

    _gaq.push (['_trackPageview ']);

    (function() {}

    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;

    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";

    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);

    })();

    < /script >

    < / html >

    To see how exceptionally bad is written PS HTML (and the reason of your gaps & spaces) count up how many instances of "colspan" and "rowspan", you will find in your code.  Reading-

    http://www.apptools.com/rants/spans.php

Maybe you are looking for