[AS CS3] Search first occurence then next search item

Hi!
I have a 1000+ page book. I need to change several (2000+) names to character style but only first occurence of that name and then search first occurence of next name. Names are on a text file which i read to AS but if i use
set myFoundItems to change text
it searches all occurences of find text and changes to character style.
What i need is a script that searches first occurence of name "AAA", changes that to character style "Whatever" and then proceeds to search name "BBB" and changes that too. Only first occurences of search.
It would be wery handy if the second search (BBB) would start right after the "AAA" and not from the beginning of teh story.
Any ideas?
Thanks

On 19/2/08 9:39 PM, "Jukka Lauhalahti" <[email protected]> wrote:<br /><br />> if one could just exit the seach/replace loop after found one item and search<br />> next item in the list from that position would speed the script...<br /><br />It would, but you can't...<br /><br /><br />-- <br />Shane Stanley <[email protected]>

Similar Messages

  • Why should we load header data first and then we load item level data?

    Hi BW guru`s,
    I have small confusion about the data loading.
    Why should we load header data first and then we load item level data?
    Is there any particular reason?
    Scenario: 1st I have uploaded 2LIS_11_VAHDR sales document header data from R/3 to BW by using LO-Cockpit extraction. Then I loaded 2LIS_11_VAITM.This is the norma procedure which we use to follow.
    I have a question. If I load 2LIS_11_VAITM data 1st from R/3 to BW and then I will load 2LIS_11_VAHDR by using LO-Cockpit extraction. what will happen?
    Regards,
    Venkat
    Edited by: VENKAT BOORUGADDA on Aug 12, 2008 11:51 AM

    There is no difference in doing it the other way.
    The load sequence will come into play only during activation where if you map the same fields from the two datasources, you might want to have the previous value overwritten by data from the next datasource.
    That is when you should care about loading one datasource before the other.
    To your question it is not arule that header data should come first.

  • [CS3] GREP search first ocurence only

    Hi!
    I have an alphabetical list:
    Asdfg
    Awert
    Bsdfg
    Bwsd
    Csdfg
    Cwsd
    etc
    Is it possible to grep search first occurrences of A:s, B:s, C:s etc and then apply some formatting?
    ie search first line that starts with A, apply formatting, ignore following lines witch start with letter A and search first line that starts with B, apply same formatting...
    Thanks

    Oh allright, this one sets the paragraph style "Index head" as well.
    nextpar = app.activeDocument.selection[0].paragraphs[0];
    do
    nextletter = nextpar.contents[0].toUpperCase();
    nextpar.insertionPoints[0].contents = nextletter+"\r";
    nextpar.insertionPoints[0].appliedParagraphStyle = "Index head";
    while (nextpar.contents.length > 0 && nextpar.contents[0].toUpperCase() == nextletter)
      if (nextpar == nextpar.insertionPoints[-1].paragraphs[0])
       exit(0);
      nextpar = nextpar.insertionPoints[-1].paragraphs[0];
    } while (nextletter < "Z");
    It's surprisingly slow, on a 3 column/4 page index... but it still beats doin' it manually, 'cause you can sit back and clean your fingernails or something like that.

  • Please create "on-the-fly change search engine" option ALSO for when we mark [word] in a text, then right-click, then choose "Search [engine x] for [word]"?

    In Firefox 34, you have changed the search bar.
    The new style is perfect for those who always starts by typing in, letter for letter, the search term.
    People such as myself, we almost never type in the search term,
    but instead we mark a [word] in a text, right-click this marked [word], then select "Search [engine x] for [word]".
    Speaking for myself, I have now a total of 36 search engine providers, but I usually only use 7 of those.
    I use "Wikipedia (English)" most of the time..
    - but then I will switch to e.g. "AniDB" and use that one for 1 hour..
    - or switch to "Google" and use that one for 30 minutes..
    - or switch to "Wikipedia (Norwegian)" and use that one for 2 hours..
    - or switch to "Wiktionary (English)" and use that one for 15 minutes..
    ..and then I will switch back to "Wikipedia (English)" again.
    The way the search bar was in Firefox 33 and earlier, I could very easily switch the default search engine.
    Just one click to open the drop-down menu, then choose one.
    In Firefox 34, I have to choose "Tools" -> "Options", the "Search" tab..
    - before I can THEN click to open the drop-down menu.
    4 clicks instead of 1, that's like 400% more work..!
    Also, the fact that I have to go into "Options".. make this..
    ..I don't know how to put it, it's a kind of psychological barrier that I have to overcome each time.
    I mean, before Firefox 34, I went to the "Options" window like maybe 4 times each YEAR,
    now, I have to go there 4 times each DAY..!
    I am not saying you should revert to the old style Search bar,
    as I feel that those you are typing search terms are indeed very happy for this new style..
    Instead, I think of 2 possible ways to create happiness also for us that do mark text and choose "Search.."
    1) An "on-the-fly change search engine" option ALSO for when we mark [word] in a text, then right-click, then choose "Search [engine x] for [word]".
    This could work as a cascading menu option, where it says..
    Search for [word] in -> [engine x]
    ..and where [engine x] was the current default engine, and all the other engines was listed underneath,
    just like the drop-down menu when you switch the default engine.
    Additionally, you could have an on / off checkbox in the "Options" "Search" tab, where you had this option:
    "Change default search engine when choosing another from the drop-down menu"
    THIS would actually be PERFECT.. It would be even much BETTER than in Firefox 33 and earlier..! :-)
    2) If there are things with the first option that don't work (something I've missed etc),
    then maybe you could have an on / off checkbox in the "Options" "Search" tab, where you had this option:
    "Use old-style search bar"
    This would be off by default, but when switched on, it would give us the old Firefox 33 style Search bar.

    Strongly recommend Context Search extension which will solve your problem
    - https://addons.mozilla.org/en-US/firefox/addon/context-search/?src=search

  • The search function and up next option on mini player has dissapeared?

    I don't know what I've clicked, or maybe not touched anything but in the last few weeks the search function and up next playlist has disappeared on the mini player. I'm using OS Mavericks, anyone else having this problem or know what to do? Thanks

    With the exception of the occasional Russian and German questions that appear here... If the manual is written in English, and the questions posted here are predominantly written in English, I'm not convinced that language is therefore the problem.
    I think it kind of works like this... When newbs come here, they:
    1) have no prior experience to realize how often a similar question's been posted
    2a) aren't familiar with the "etiquette" of searching for similar questions befor posting
    2b) aren't familiar the lameness of the search engine on this forum in order to even get answers; or, they've tried it and come up with years' worth of posts to sift through and quickly move to...
    3) ...posting a question because they want a quick fix -- they're probably excited about getting up and running quickly with Logic
    I have always had problems with the readability of the Logic manual, and I still find it difficult to comprehend because it's really poorly written (IMO). Most, sentences in, it read, like, this. And there's a wont of illustrations (pictures are worth...).
    I think some questions are so basic that they don't behoove a response moreso than "spend some time with the manual first". Occasionally I've indulged a total newb (not to single anyone out). It's maybe 75/25 that I felt like I had actually made a difference to their understanding, the poor ratio due to the fact that they simply needed to read the manual first.
    Yes, it's frustrating to see newb posts dominate for a while and push more serious questions to the bottom. The occasional OT post is OK, IMO, but what bugs me more is when they predominate.
    BTW, can anyone recommend some good strings for a 3-string backpack-style dulcimer?
    : ^ )

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • My iphone will no longer connect to my home wifi. it recognises it, but the searching cirlce is constant next to network name. there are three laptops and another iphone on the same wifi that have no issues. i have reset network settings

    my iphone will no longer connect to my home wifi. it recognises it, but the searching cirlce is constant next to network name. there are three laptops and another iphone on the same wifi that have no connectivity issues. i have reset the network settings but that did not help. the issue started last week when the second iphone was introduced to the house, could this be the cause?

    No.
    Any problem connecting your iPhone to any other wi-fi network besides your own?

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Google is set as my search engine but whenever I search something in the address bar it searches with Yahoo! How do I get rid of Yahoo! as my search engine when it is not even set to be my search engine in the first place?

    Google is set as my search engine but whenever I search something in the address bar it searches with Yahoo! How do I get rid of Yahoo! as my search engine when it is not even set to be my search engine in the first place?

    1. Use  free  AdwareMedic by clicking “Download ” from here
        http://www.adwaremedic.com/index.php
        Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
        “Quit AdwareMedic”.
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.
    3. Safari > Preferences >  Search > Search Engine :
        Select your preferred   search engine.
    4. Safari > Preferences > General > Homepage:
         Set your Homepage.

  • Hi. On the buttons labeled Back, Forward, Reload, Stop, and Home on the top of Firefox page used to be all right beside each other on the left, followed by the Address Bar and then the Search Bar.

    However, I wanted to try Firefox Beta 4 but didn't like it, especially since I'd lose all my add-ons! So i have Firefox 3.6.13, but now my bar at the top is Back, Forward, then Address Bar, the Reload, Stop, Search Bar, and then Home. How do I get it the way it was before?! Please help!
    I also had a buttong for AiOS (All-in-One-Side Bar) which I really like and now it gone! I cant find it in the preferences either! Please help. I would insert images to help but I guess I cant do that here.

    Thank you SO much! That completely solved all the issues! You've made my day! Thanks!

  • When calling or receiving calls, after a minute or so, is the call, give notice "call failed, THEN RUNS OUT OF SERVICE, then activated" SEARCHING "and then restoring the coverage. THIS FOR THE 100% of calls

    When calling or receiving calls, after a minute or so, is the call, give notice "call failed, THEN RUNS OUT OF SERVICE, then activated" SEARCHING "and then restoring the coverage. THIS FOR THE 100% of calls

    You may have a bad sim, contact your phone carrier and see if you can get a new one.

  • I have Mac OS X Version 10.6.8 ,I want to buy the updated operating system that puts iMessage and Facetime on my Macbook Pro. What should I search for, and then purchase, in the App Store?

    I have Mac OS X Version 10.6.8 ,I want to buy the updated operating system that puts iMessage and Facetime on my Macbook Pro. What should I search for, and then purchase, in the App Store?

    FaceTime can run in the version of OS X that you currently have. To get Messageyou need Mountain Lion. The protocol used by Messages is iMeassage.
    The question is does your MBP meet the specs for Mountain Lion.
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory
    8 GB or more of available space

  • I have had audition for 2 years.  Today it crashed.  It gave a configuration error: 16  The message said to uninstall and reinstall.  I did.  Still the same error.  Then I searched forum and checked the two folder permissions.  They were correct.  So what

    I have had audition for 2 years.  Today it crashed.  It gave a configuration error: 16  The message said to uninstall and reinstall.  I did.  Still the same error.  Then I searched forum and checked the two folder permissions.  They were correct.  So what do I do???????

    Hi Charles,
    Please refer the following helps article on the problem.
    https://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html
    Hope this helps.
    Regards,
    Sumit Singh

  • When I switch on my brand new iPad it asks me to move the slide to begin set-up. A list of languages appear and I tick English and then next. Another list of languages appear but nothing else happens. I press Back and it goes back to the first list and a

    When I switch on my new iPad it asks me to move the slider to begin set-up. A list of languages appears and I tick English then NEXT. Another list of languages appears and the only thing to do is press the home button or BACK. I press BACK and it returns to the first list. I press the home button and a message appears saying that SET-UP was not completed do you wish to retry or continue. I press CONTINUE and nothing happens I press RETRY and it goes back to the message. What am I doing wrong or do I need to connect to I-Tunes to set-up ?

    Try to connect to iTunes during the setup.

  • My iPad won't connect to 3G- Searching...then No Service

    My iPad 3G + WiFi won't connect to 3G- It says Searching...then No Service. got new sim,reset network settings,tried switching between airplane mode on/off,  erased all content and settings, restored from a backup on itunes- all of the troubleshooting methods that AT&T and Apple customer services reps could think of. It's possibly a hardware issue. I have a genius bar appt. tomorrow. Has this ever happened to anyone before? Any other suggestions to try? Thanks!!

    I have a genius bar appt. tomorrow.
    Let us know the results. Could help someone with the same problem.
     Cheers, Tom

Maybe you are looking for

  • Reporting on ods

    Hi, I have two questions: 1> If reporting is done on an ODS then which table of ODS is used to get data? I guess data is retrived from "ACTIVE" table. 2> If ODS is used as an infosource then for updating takes place from which table? I think it is "C

  • Burns DVDs,  WON'T play commercial DVDs

    So I seem to be having the REVERSE problem from everyone else. My iMac G4 (17", 1GHz processor, 512 MB RAM), which I just bought for a piddling $200, will play and burn CDs / CD-RWs just fine. It will also correctly identify blank DVDs that I stick i

  • Problem in placing files in server

    Hello, I am working on applet to servlet communication. I have developed the code but I have problem in placing the files in the tomcat server. these are my files test.html test.class (applet) inter.class (bean implementing serializable interface) te

  • Reference details field in VM - Pmt transactions tab not mapping in idoc

    Hello, We have account numbers that are longer than 18 characters for some vendors & BP and need to enter the remainder characters in the field Reference Details of the vendor master and BP (in the Payment transactions tab).  However, these additiona

  • Query in export on vms

    greetings: could any1 help me with the syntax for using a query in an oracle817 export sitting on openVMS operating system?