More than an OR operator?

My company manufactures long newsletters, that pull stories and tables separated by tabs, auto-formaté with Xtags by Em Software.

My problem is, one of our sources of tables has changed recently and pulls designations very long instead of shortcut allows us to obtain.

I wrote a script to search for in the document paragraph style and do a find a replacement for several key words, so I can use abbreviations. I tried to learn as much as I could just to correct this problem. I don't have a lot of knowledge in this area.

It works fine, except when I add a second "or" | operator. There must be another way to achieve this. The script does not work error. He simply ignores my 3rd condition. See below. It's the 3rd a "Vice Pres' is ignored. Any advice?

Forgive my ignorance. Thank you!

replaceTextVP ("Vice President" || "Vice Pr" || "Vice Pres" , "VP");


function replaceTextVP (input, output)
{
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat = input;
    app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item("INSIDE_LINE");
    app.changeTextPreferences.changeTo = output;
    app.activeDocument.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; 
}

I don't know if it will help in your situation, but thought I'd share it anyway. It is the way I was taught to the search and replace of text.

You can duplicate the second line to add more choices find/replace.

var tagCleanup = [];

tagCleanup.push (["what to find", "what should be replaced by"]);

for (var counter = 0; counter< tagcleanup.length;="">

app.findTextPreferences.findWhat is tagCleanup [counter] [0];.

app.changeTextPreferences.changeTo = tagCleanup [counter] [1];

App.Documents.Item (0) .changeText ();

}

Tags: InDesign

Similar Questions

  • If someone UN-install/reinstall the XP operating system for a new beginning and not use any old files more than cure someone of a problem of malware/malicious?

    If someone UN-install/reinstall the XP operating system for a new beginning and not use any old files more than cure someone of a problem of malware/malicious

    Reformat the disk and reinstall Windows XP would heal any problem of malicious program with the exception of an infected MBR (Master Boot Record) on the disk.   The F-Secure rescue CD is a tool that allows to remove a MBR infection.

  • Operating system is very low on disk space. NtKernel.etl takes more than 1 200 KB of space files.

    Original title: NtKernel.etl

    My Windows Vista operating system is very low on disk space. NtKernel.etl takes more than 1 200 KB of space files. Can I delete this file to create more space?

    CH

    ETL files are files of track, but that won't get back you a little more than a MB.  If you're hungry for space, it might be time for a larger drive.

  • How can I print more than 30 operations on faxes? cc = us

    How can I print more than 30 operations on fax reports?

    Although knowing your printer model could allow us to provide you with a more precise answer.

    Most consumer products keep the last 30 transactions in the Fax journal report.

    As a result, more likely, it's the largest capacity that can keep the memory of the printer.

  • I subscribe to creative cloud for more than a year. I heard that after this year, I still want to be able to use the software. However, I would not be able to update until I subscribed again? What is its operation or? Thank you very much

    I subscribe to creative cloud for more than a year. I heard that after this year, I still want to be able to use the software. However, I would not be able to update until I subscribed again? What is its operation or? Thanks a lot now have a load of files I can not settle before I send them to the clients until I have shut down my business. Can anyone throw any light on the matter please?

    If you do not renew your subscription, you will have 30 days to use the programs as tests... and then they stop working

    A subscription is like rent a car... stop paying, and you stop driving

  • Bought Office Acrobat 11 DC Pro to my PC running Windows 7 - I have more than enough RAM and storage, but get the message: "this application cannot be installed on this operating system. The installation program will end now. Please refer to the minimum s

    Bought Office Acrobat 11 DC Pro to my PC running Windows 7 - I have more than enough RAM and storage, but get the message: "this application cannot be installed on this operating system. The installation program will end now. Please refer to the minimum requirements to... "Can't determine the location on the Adobe Web site to get answers. Any suggestions?

    I deleted an earlier version of Acrobat Pro from my computer. Still, I get the same message.

    Hi John,.

    Please specify if you have purchased DC Acrobat or Acrobat 11 or upgrade you to the latest patch for Acrobat 11, that is to say 11.0.11 so that we can help you accordingly.

    I wonder if you have checked your system requirements before you download Acrobat.

    I would also ask to share with you the screenshot of the error message with us.

    You could probably uninstall Acrobat using cleaning tool. Here is the link for the same thing.

    http://labs.Adobe.com/downloads/acrobatcleaner.html

    If you were installing DC, check out the following link to download.

    https://helpx.Adobe.com/Acrobat/KB/Acrobat-downloads.html (classic)

    https://helpx.Adobe.com/Acrobat/KB/Acrobat-DC-downloads.html (continued)

    Concerning

    Sukrit diallo

  • Calendar Creator more than Power UP software compatibility with W7 Pro operating system

    I am running Calendar Creator more than power upward on a laptop XP Pro (SP3) and Vista desktop. I upgraded a second office linking W7 Home Pro for compatibility features but can not get the W7Pro to run the calendar program. I went through the screens of compatibility W7Pro without success. I moved the program from one computer to another for years with no real problems so far. I LOVE my calendar program and need advice how to solve the problem of compatibility W7Pro.

    By the program area, some of the system requirements are as follows:

    80386 or higher IBM or compatible PC: 3MB RAM: Windows 3.0 or higher:

    Its a very old origonally program for win3.0 and could thus be a program 16 bits, and if you have win7 64 bit his will never run unless you use an emulator, such as DosBox.

    Basically, you can solve a problem of compatibility, otherwise that by getting an update of the program, if such exists, or using an emulator or virtual winxp, but one such solution will be more difficult than its worth (if even that works)

    Time to move and use the calendar provided in windows live essentials, or another more upto date schedule program

  • Thunderbird may take more than a minute to open, how to fix this?

    Sometimes the thunderbird program may take more than a minute to open, sometimes it only takes 20 seconds. How long this program normally does open?
    What can I do to speed up this process?

    To diagnose problems with Thunderbird, try one of the following:

    • Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
    • Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
    If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
  • More than one backup device on one Time Machine HD

    I have an iMac, MacBook Air and airport Time Capsule and want to use Time Machine to back up the iMac and MacBook Air at this time Capsule.

    Is the OK of Time Capsule have more than a backup Time Machine on his hard drive or time Capsule prefers to be dedicated to a single device?

    Thank you

    -Mike

    You can absolutely use the time Capsule to back up multiple devices, as long as you're not on its storage capacity. For example, if your Time Capsule 2 TB of storage, it will not be able to save six iMacs with, say, 1 TB of data on each, but he can easily save your six iMac if you use only 128 GB of storage on each.

    Moreover, the mode of operation of Time Machine is that it backs up your devices until it fills up with backups, then it starts the deletion of old data, then you are more likely to be able to go back, say, eight months, a Time Capsule, which is the only backup of a computer.

    The first backup you make take as much storage, then it saves only the changes, then other backups take as storage space (unless you happened to download several movies or installed several video games since your last backup).

  • How to add more than 9 paintings of speed dial?

    Hi, I changed my opera, and I got 15 to 20 paintings on speed dial. Is it possible to have more than 9 in mozilla?

    Hello sonyman, you can enter about: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.newtabpage.columns / browser.newtabpage.rows. Double-click on them and their values accordingly.

  • Firefox takes more than a minute to open after clicking on a link of e-mail in Outlook Express.

    When I click on a link in Outlook Express, Firefox takes more than a minute to open the page. I have 2 other computers running the same operating system (XP) and the same versions of Firefox and Outlook Express that do not have this problem. Firefox is my default browser.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • my download speed should be 30 Meg a second, but I can't get firefox to save and use more than 2 meg.

    I run a 6 base machine 3.33 with video memory of 2 GB and 6 GB of physical ram with a windows operating system 7. My internet speed is 30 meg but firefox will not record more than 2 meg and response time, and the downloads are slow. Y at - it something I can do to solve this problem. I know I'm getting the correct speed to use other applications. any help would be appreciated.

    Try to start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if that helps.

  • Photos iPhone app using more than 5 GB of space with very few photos

    Hi all.

    I decided to get the Apple forums for help regarding a problem that my mother is with her iPhone 6, iOS 9. (I think she just recently updated to the latest iOS operating system 9 as well.)

    When my mother going into settings > use (or whatever he says now with iOS 9.0) > manage storage, it shows his Photos and the camera are well more than 5 GB, although it has only 100 or so photos in the camera roll. Recently deleted folder is empty, everything has been removed from it.

    Now, I had the same problem just now, where I had very few photos but I apparently got 3GBs is photo taking my storage space. I looked online and found that the problem could be the photos to try to load it on the library to iCloud? I don't use this feature, but someone had recommended to go into settings > iCloud > Photos > click on iCloud photo library and then turn it off. Miraculously for me that works to get rid of 2 + space GB of Photos & camera on my iPhone. It is as if it were an invisible compensation cache of photos or something.

    I attempted to try this technique of "turn on the library to iCloud and then clear it" even on my mother's phone, but every time I clicked on, she says there is not enough space storage iCloud. She has a limit of 5 GB, but has about 5.9 GB of photos apparently cached somewhere.

    Finally, my question is, is there a way to delete this absurd amount of space which is be resumed without the need to restore to factory settings?

    Any input would be greatly appreciated! Thank you!!

    Make sure you first what iCloud p. l. is off his phone. Then try to reset the Photos App close pictures completely from the window of the selector app by double clicking the Home button and slide up the photo preview pane until it disappears from the display. Then perform a forced reboot. Hold down the home and Sleep/Wake buttons simultaneously for about 15-20 seconds , until the Apple logo appears.

    If this is not enough, you may need to do a restore. You can do a restore of backup first and not come back again or factory. It is possible that the backup can be damaged, and if so a restore as new would be your next option but try to restore everything first from a backup.

    https://support.Apple.com/en-us/HT201252

    I hope that the steps described in the first paragraph will take care of him.

  • How can I save a web page without creating a dozen or more than tiny files, which is worse than Internet Explorer?

    When I try to save a web page in Firefox, I get about a dozen tiny files with any funny names cluttering up my documents folder and makes it difficult to find anything. It reminds me of the problems I used to have with Internet Explorer more than ten years ago. But at least IE was kind enough to collect all these files in a single folder named "files". Firefox them pouring everything in the folder my documents. Messy.

    Years, I discovered Opera, which offered a file format which combined the original html code with other files in a single file: the archives of the internet, with the extension instead of htm mht. I used Opera for years, but has recently become aware of the benefits of Firefox.

    A few days ago, I downloaded the latest version of Firefox and installed. I've been evaluating it since then. It looks good; I figured out (more or less) how Bookmarks work, and I'm getting used to the task bars.

    But when I try to save a page, I still have a deluge of tiny files cluttering up the target folder. Firefox stores pages in the form of archive, but only in the old scattered form. Of course, I could just save the html code only. Maybe it's the best thing, but it loses a lot.

    The chaos of the junky files cluttering my target folder is enough to send back me to Opera, despite its limitations.

    This extension allows for web pages saved in MHT format.

    https://addons.Mozilla.org/en-us/Firefox/addon/8051

  • Qosmio X 500-10T failed to retrieve HARD disk 64-bit with more than 4 GB

    Hi all, this problem is driving me crazy, please help someone.

    I tried to use HARD drive recovery using the F8 option, but the recovery kept in check and wouldn't start.

    On the audit of the bulitins for my laptop (Qosmio X 500 10 t), I found that there was a known error with 64-BIT operating system more than 4 GB, and there was a patch for it here:

    http://APS2.toshiba-tro.de/KB0/TSB9C02RL0000R01.htm

    The problem is that I downloaded the patch and when I try to run the setup it tells me that the patch cannot be run on an OS Win 7 64-bit. It's a little strange that I'm under Win 7 64 BIT. I tried to run in safe mode without success. I searched the internet for the solution and can not find. Toshiba to this patch release was December 2009 as surely there should be a fix for this. I have no backup discs that I would never use the retrun to the factory settings using the HARD drive recovery.

    If anyone else has this problem or has any what ides on what to do please help. I really have to make a recovery.

    Thank you

    Pete

    Hey,.

    I think that the easiest way is to remove a memory module, and then restart the HDD recovery. Remove a memory module only takes 5 minutes and I know it s described in your user manual.

    Then restart recovery HDDD and installation of recovery should finish correctly.

    After that, you can reinstall the second memory module and install the Toshiba page patch. :)

Maybe you are looking for

  • Light in the camera body

    I was shooting this morning with the sun shining at 90 degrees to the right of my F55 and noticed a flair purple diagonally crossing the frame from the top of the page to the right and down left. The Sun was not round enough to be in the lens, nothin

  • Network HP printer feeds a blank page between every printed page

    My HP network printer feeds a blank page between every page printed when I print from my laptop running Vista.  Printer feeds not the white pages from another laptop under XP. So I would appreciate any suggestions.  Thank you and happy new year.

  • In the form of box lock?

    Our team is currently working to try to see if we can create a form of multiple selection living on a hypersite which can be visited on several occasions.However, this would be our kicker is this: If a person chooses a box and click on send - is it p

  • Re-create a .muse file lost from a muse Web site?

    My PC crashed before that I had saved my files to work on a site of muse, that I had already published. I have to recreate the entire file muse all over again, or if I can reverse build of my HTML files? Other completely rebuild from scratch, is ther

  • interchangeable HD-replacement laptop?

    I have a HP G60 who has been abandoned and needs repaired. I would like to know if anyone knows if the 134-020 Seagate EV 9 HD that came with this machine is interchangeable with any other HP laptop? For my current laptop repairs seem to be expensive