How to input text index search/edit/delete in the documents

Hello

I have a catalog that contains a lot of index entries. I use indexes to sort all products. Usually the index entry is 'product name', and if the product is "New", I'll add 'product name NEW' in the index.

So when I do the new catalog, I have to remove the old texts 'NEW' in the index.

  1. How can I find the index entries in the document (protected by a kind of brand that can be found)?
  2. How can I change/remove the specific text in the index entries?

Thank you in advance to anyone who responds to this post.

Open ExtendScript Toolkit, paste the script below and press "F5".

#target "indesign";

(function () {
    var doc = app.activeDocument,
        indexIdx = doc.indexes.length - 1;

    function removeNewEntriesFromIndex(index) {
        var idx = index.topics.length - 1;

        for (; idx >= 0; idx -= 1) {
            index.topics[idx].name = index.topics[idx].name.replace(/ *NEW$/, '');
        }
    }

    for (; indexIdx >= 0; indexIdx -= 1) {
        removeNewEntriesFromIndex(doc.indexes[indexIdx]);
    }
}());

Tags: InDesign

Similar Questions

  • How can I create CSS for the editable regions in the documents based on templates?

    I created a template in Dreamweaver CS4 by using their set of 3 columns, header and Footer option available. The model works fine in the browser. I inserted an editable region in the empty middle of the model column. I created a new page based on this template and want to be able to format the text that I entered in the editable using CSS. Any time, I try to create a new CSS rule I get the following dialog:

    "This change should change the code which is locked by a model or a translator. The changes will be rejected. »

    Is it possible to create new CSS, which will apply to the information entered in the regions be modified of a document based on a template? Simple step by step instructions would be appreciated.

    Thanks for reading

    Do not know what is the 'id' of the middle column, but you must target the text inside that

    .

    Example:

    {#whatever}

    color: #639;

    do-size: 12px;

    }

    It is better if the text in the middle column is paragraphs and target you them as as follows:

    #whatever p {}

    color: #639;

    do-size: 12px;

    padding: 0 15px 15px 0 / * top, bottom, right, left * /.

    }

    You must make sure that you include the above in the editable page css region and HE MUST come after any link to the style sheet css main.

    If in doubt post the code for the page here and say what you want to be purple and I'll have a look.

    The tip is stop created with the css dialog box in DW, it's a load of bollocks and started writing some simple css directly in the page itself. It is easier and gives you more control than any interface automated half cooked in the oven.

    Start learning some simple css. There is absolutey zillions of resources on the net. A couple of hours well spent and your miles further. If you keep pressing DW to do everything for you, then I'm afraid you'll just be going around in circles.

    Enter the code and don't be afraid of him, take it apart and see how it works. Slowly step by step and little by little you will realize how simple structures are and how simple css really is.

  • I do not see the table of contents, Index, search & amp; Glossary when the call for help on a topic

    Does anyone else have this problem? I use webhelp with contextual sensitivity, and I appeal to the table of contents, Index, search, and glossary to display. If I go to the welcome home page, they are exposed. But when we ask for help on a particular page, these areas are not shown, but they can be opened using the view link. I much prefer to see the exposed left pane, rather that ask the user to click on this link. How can I do this?

    Robin Valk

    Hi Robin.
    See this link using the appeal of the CSH Webhelp output.

  • (9.2.0.5.0) 9i - Oracle Text - Indexing of Oracle files on the FTP server

    I'm using Oracle 9i (9.2.0.5.0) and I cannot upgrade to a newer version of Oracle DB.
    I am new to this technology, and I have not tried it yet myself.

    I was reading some articles, documents or references on Oracle text technology and I find that Oracle text must be able to create an index of context on files residing on the FTP server.
    I also discovered that, for this purpose, a 'URL_DATASTORE' should be used.

    I'd be happy if someone can answer my question before I decide to start using this technology:
    Is there a limitation that I should be informed when creating index of context on files residing on the FTP server? (file size limit, limitation of the types of files supported)
    -In the creation of the index process are the files indexed, downloaded and copied in the Oracle database permanently or only temporarily until the index is created?
    -Everything is of incremental indexing (when I add new files in the data store that I don't have to rebuild the entire index)?
    There there a formula between context index disk size and the disk size indexed files?

    Kind regards

    Michal

    Is there a limitation that I should be informed when creating index of context on files residing on the FTP server? (file size limit, limitation of the types of files supported)
    Maximum file size is configurable up to 2 GB. No limitation on the file type from the data store itself, but if you want to process binary file list filter suported file formats will apply (see the appendix in the Administrator's guide)

    -In the creation of the index process are the files indexed, downloaded and copied in the Oracle database permanently or only temporarily until the index is created?
    That temporarily

    -Everything is of incremental indexing (when I add new files in the data store that I don't have to rebuild the entire index)?
    The question, I suspect that you see this as a robot - you expect to provide the address of an FTP site and have it look for all documents. This isn't how it works. Instead, you must place all of the URLS in a table, and text will index these URLS (and only these URLs)

    If new files are added, you must reorganize somehow having the new lines added to your table. Then the text will do an incremental update, it will not have to rebuild the entire index.

    There there a formula between context index disk size and the disk size indexed files?
    It varies a lot depending on the data types and indexing of selected options, but a typical result is that the index will be 40% of the total size of the file. However, if the documents are in the format (for example, Word, PDF) the percentage will be much smaller.

  • I have 3 I paid and you want to delete all the information that a a them. How to be painful that will not delete fron the 2 that I paid I want to use

    I have 3 I paid and you want to remove all the information ONLY one of them. How to be painful that will not delete the other

    You can go to settings > General > reset > erase all content and settings and will erase the iPad that you perform this action on. It has no effect on another device.

    See you soon,.

    GB

  • How can copy text from a PDF file in the right order?

    I get texts translation of customers in PDF files. I need to copy some of the text of these files in Word, but the selection of Adobe jumps tool documents around, seemingly at random, sort of paragraphs and lines from different locations on a page are automatically selected together. The tables are particularly bad. If I try to copy an entire file, receives yet more random order. For example, all the titles of the document can be gathered in one place. I tried various PDF conversion software. They put all the PDF content in the areas of text, which is not suitable for my purposes. I want to just copy the PDF files in the exact order in which they appear on the page in text form that I can handle in Word. I'm now up to version 9.3.0 and there has been no improvement. Is there a solution to this problem?

    Hey, Marcoola.

    I agree that by copying and sticky from PDF to Word maunally are really difficult and tedious work. I have encounterd this problem before. Fortunately the problem can be solved perfectly now. I recommend AnyBizSoft PDF to Word Converter, which is totally free for months before. This conversion mode supports three app - batch, partial, right-click conversion and it even supports encrypted PDF conversion, previously you must have legal rights. And the conversion quality is superb, all the original text, page, images and hyperlinks will be preserved in an editable word document. It is more useful than those software online for free. It will be useful.

  • Messed up the editable regions in the documents based on templates

    Y at - there no way to fix corrupt editable regions in a document?

    We have 2 editable regions in a template: -.

    <!-TemplateBeginEditable name = "MidText"->

    < p > < / p >

    <! - TemplateEndEditable - >

    <!-TemplateBeginEditable name = "LowText"->

    < p > < / p >

    <! - TemplateEndEditable - >

    In several documents based on these models, the name has been deleted by mistake: -.

    <!-TemplateBeginEditable name = ""-> "

    < p > < / p >

    <! - TemplateEndEditable - >

    <!-TemplateBeginEditable name = ""-> "

    < p > < / p >

    <! - TemplateEndEditable - >

    If we try to update the documents in an attempt to fix, we get the following error message:

    There is an error on line..., column... (absolute position...) of "nomDuDocument": name missing for InstanceBeginEditable ""

    If we try to update using the templates, we get the following error message:

    no update, error in the file of template or instance

    Is there a 'fix' for this?

    Thank you.

    Looks like you know what you're doing.

    Assuming your child pages are incorrect, try closing DW and open the problem page in a simple editor like Notepad or Simpletext ascii text, add in the missing name values (remember to use the proper case) and save & close them.

    Then see if DW is happy.

  • Cannot edit or view the document in design mode

    Hi, I have a html doc, I pasted in dreamweaver. It makes fine in browsers and in the 'live' view in dreamweaver, but everything I see in design mode is highlighted yellow < table > tag. I can't view or edit the document. Is there a problem with the html code of the leaves of style or code? I deleted this code and it has not yet displayed in design mode:

    < style type = "text/css" media = "screen" >

    body p {margin: 0; padding: 0; margin-bottom: 0; - webkit-text-size-adjust: no; - ms-text-size-adjust: none ;} img {line-height: 100%, outline: none; text-decoration: none; - ms-interpolation-mode: bicubic ;} an img {border: none ;} #backgroundTable {margin: 0; padding: 0; width: 100%! important ;}, a: link {color: #EB732E; text-decoration: underline;}.}}}} ExternalClass {display: block! important; width: 100%;}. ExternalClass. ExternalClass p. ExternalClass merged. ExternalClass font. ExternalClass td. ExternalClass div {line-height: 100% ;} table td {border-collapse: collapse ;} sup {position: relative; top: 4px; line-height: 7px! important; police-size: 11px! important ;} a [href ^ = "as"], a [href ^ = "sms"] {text-decoration: none; color: #cfcfcf; / * set the color of the text * / pointer-events: none; cursor: default ;} .mobile_link one [href ^ 'such' =], .mobile_link a [href ^ = "sms"] {text-decoration: by default; color: #cfcfcf! important; / * set the color of the links * / pointer-events}}}}} : auto; cursor: default ;} .no - detect a {text-decoration: none; color: #cfcfcf; / * set the color of the text * / pointer-events: auto; cursor: default ;}.} Hide {display: no! important ;} span {color: inherit; border-bottom: none ;} span: hover {background-color: transparent;}.}} ExternalClass img [class ^ = Emoji] {width: 12px! important; height: 12px! important; display: inline! important;}. ExternalClass sup img [class ^ = Emoji] {width: 10px! important; height: 10px! important; vertical-align: super; display: inline! important ;}}

    < / style >

    Any help much appreciated.

    Thank you

    SSL

    Tools for validation of code below & difficulty errors reported.

    Code Validation tools

    ------------------------------------

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    In addition, ensure that your paths to files (CSS, Scripts and images) are all correct and pointing to your site folder.

    Nancy O.

  • How can you get rid of "Please wait while the document is being prepared for reading" at the opening of a file on a mac?

    I read about the deletion of the file of the accessibility to the use of a pc.  Where are these files on a mac?

    And is there a better solution that can be reached in the preferences?

    Thank you

    Hi samc77346904,

    You can navigate to Edit > Preferences > select 'Read' in the categories and under "options" screen reader label select the drop down option "pages vs" menu and select "only read the currently visible pages" menu drop-down.

    Let us know if this solves your problem.

    Concerning

    Sarojini

  • My block of text type is not selectable in the document (a line as a dotted border)

    How can I get a text in the document after the implementation of a text frame on the master page?

    On the page of the document, you will need to keep the two keys while you click on the frame away from the master, or use the file > place to put the text inside. The only thing that could stop you from doing what I think is if you locked the framework or it is on a locked layer. Locked frames can be selected by default (and you can change this in the preferences) and nothing on a locked layer is selectable, but it looks like not that's the problem if you can select on the master.

  • Need text box changes to reflect through the document.

    Hi all

    I'm pretty new in InDesign. I was wondering if there's some way to do master text box changes reflect through the whole document used this master page after you move the text boxes on the documents. Is this possible?

    So. Let's say that there is the block of text with the text on the master page. I decided to use this master page on a given document, but I needed to move the block of text with the text in this document. I won't be able to change the master page text?

    Right. Once ignore you it and move on the live page, change the text on the master does not affect the text on the live page.

    If you have the same frame with the same variable text appear in the same place on multiple pages, put that image on a master page is a good way to make your life easier. But if you need the same frame with the same variable text appears upwards in * different * places on many pages, there are more effective ways.

    You don't mention a version. CS3 and CS4 allow variables (Type > text Variables). You can create a custom text variable and insert this variable in your document. Change the definition of the variable and this will change all at once. I think that a custom text variable cannot be more than one line long, but the only limit to the length of the line is the length of the block of text that is.

    For more than one line, you can make your block of text in a separate document, export it to PDF and then place the PDF anywhere in your document. Edit the new document, PDF export and it will change all at once. In CS3 or CS4, you can also directly put your separate Indesign document into your working document. No necessary PDF.

    Ken

  • How to close an app after that I saw the document? That is to say Adobe

    I have Windows 8 and I want to Adobe (or program that never I use when I open an email) to close after I close the document.  How can I do?

    What say you / ask is not clear.

    If you open an attachment, when you close this attachment some program has been used to read/view this attachment is also closed

  • How can I get this little hand off on the document?

    I have some how turned a little hand instead one arrow on my documents and do not know how to activate it off... how do I turn it off! ???

    Select the hand tool focuses on this tool. By selecting the tool Selection focuses on this tool.

    Be well...

  • How to paste text in ANY editable field (e-mail, sms, browser, contacts address bar / any other application)

    Hello

    Can anyone help me please with the following questions:

    1. once I have add a menu item to help

    ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, myMenuItem);
    

    I am able to access an instance of net.rim.blackberry.api.mail.Message (when I'm in the e-mail editing mode) and put the content in the subject / body of the email, but it was mostly a proof of concept for me.

    What I really want to be able to do, it's automatically access the instance of any editable field in any (RIM / part 3) app that the user cursor is now. When the focus is on something that is not editable, then my menu item should not appear in the menu.

    In addition, it is important for me to know exactly where the cursor is. For example if the cursor is in the middle of the text, then I want that my extraordinary paste paste of stuff there. The same for the selected text - it needs to be replaced.

    Basically I want my menu Paste Special feature works exactly like 'Stick', unless I want to offer which should be pasted.

    2. Apart from curiosity, what are we supposed to go back to the

    public Object run(Object context)
    

    method? For now, I'm doing my treatment based on the type of control context and make the treatment on it and everything just return null (which works well), but I don't know I'm on some features.

    Never done this, but looking at the API and remembering what simon_hain said when asked a similar question, I think it goes like:

    You can get help from the active screen

    UiApplication.getUiApplication () .getActiveScreen ();

    You can get the Menu for a screen to help

    . getMenu();

    You can browse the menu for help

    . getItem()

    for

    . getSize()

    entries.

    I think that 'toString' will give you the message, then

    . Run()

    to run it.

  • AOL have diverted the search bar, deleted all the other engines and disabled the reset.

    I noticed that at some point today the search bar was reset to aol. I removed aol in the bar, but now there is NO option to search engine. All done malware also deleted all other options in search bar, disabled by default reset settings and seems to have deleted the folder of drive C search plugins. I tried an add-on to restore the default choice, but it didn't work. I tried to reset Firefox and a system restore. None worked. I copied the folder searchplugins from a backup, but that has not changed anything. I don't see a new Mozilla Firefox folder (34) as indicated in some other threads. I looked into: config and there are new things for aol it but I do not know how to remove them or what, if anything should replace them.

    Try to add a google search plugin to firefox.
    http://mycroftproject.com/Google-search-plugins.html

    Click on the a 1 and it should ask you to add google.

Maybe you are looking for

  • v.92 modem

    Hi, I have a satellite a40-211 and this should have a modem v.92 with her, but I can't locate it...When I check the modems in the control panel only normal toshiba agere modem appears.Where else might appear this modem and how to activate it?Thanks f

  • Lost my Bios setup, boot on Terca S1 password

    I have a Tecra S1 version... but I lost my bios password... When I turn on my laptop... He asks for a bios password. How can I get it back [Edited by: admin on 5 February 06 13:10]

  • How can I include all the VI that are listed in the hierarchy of VI for a source distribution

    I'll send my request to another developer. To do this, I used the source distribution function. But if I generate the files I miss the VI they are stored in the form of instrument drivers. How can I include, too?

  • Why can't I sing in my hotmail

    He'll be back internet explore cannot display the page

  • The A53 8980 will support two monitors?

    It is unlikely, but it's always good to ask: if I install a PCI-E graphics card in an A53 8980 will I be able to use the two VGA ports now available (the other being out of the motherboard) to run your desktop bi-ecrans tense? See you soon!