Slow down the script

Hello world

When you run a script as "FindChangeByList.jsx" included in InDesign, is possible to edit and do show you next change and wait for change you to click the button? How it would be written in javascript?

Secondly, is it possible to run a script (such as FindChangeByList.jsx) and have it tell you how many changes have been made (in a dialog window)?

Mike Witherell in Maryland

If you look in the code, you can see the functions "myFindText", "myFindGrep" and "myFindGlyph" all store them the results of the real myObject.changeXXX(..) in a variable called myFoundItems . This will be an array of the amended text (and it is not used anywhere. Eh_bien, these are just example scripts.). The number of changes is the length of the array: myFoundItems.length.

You can:

1. Add a global variable at the top, before the line "main()":

var NumberOfChanges = 0;

2 at the end of each of the routines myFindXXX, add a line

NumberOfChanges += myFoundItems.length;

3 Add an alert at the top, after the line "main()":

alert ("Number of changes made: "+NumberOfChanges);

Not tested, but it should work.

Regarding your other point, a manual to confirm for each find/replace separate: it's much, much more work. It must be remembered that InDesign JavaScript do not "drive" the interface (like a macro), but makes rather direct calls in the underlying code. The Find/Replace dialog box is never "so-called", and there is no possibility of in kind 'pause' in the middle of the operation and to show the State of this dialog box.

Unfortunately, Adobe programmers did not add orders for 'find next' and "change, to find the next" to its script interface. You can search or replace, nothing else. It is possible to use a find all first and then, roll on its results and manually choose the occurrences of change, but each time you change something, all previously found list is invalidated! There is no easy way of 'continue' looking for any random starting point either (and frankly, it seems a recurring problem for Adobe programmers, because in the interface itself is also quite irregular sometimes!).

Can you tell us more about what is the substance of your question?

Tags: InDesign

Similar Questions

  • Is to slow down the Server OEM?

    Dear friends,

    Thought to implement OEM for the convinience to keep an eye on the mistakes and the tablespace space problems.

    Once I tried the last time, but all the developers said the database became incredibly slow.

    After that I stopped dbconsole, they all felt better.

    OEM slows down the database if its installed on the same server?

    Thank you very much.

    user645399 wrote:
    It is advisable to use OEM or better to just go with scripts.

    The new project should soon be launched for users and if its slow, then I am responsible.

    OEM is entirely GUI based and very easy to use. Which you can view grphical outputs
    If you prefer Scripts, there are a lot of manual work necessary.

    It depends on how you choose. If you have the option of OEM which is easy to use. So why if you prefer the manual way? As said previously it is not much of an impact as you think.

    If it's only concern then like I said create a new tablespace devote for OEM outside sysaux.

  • How do I disable Adobe Flash - too many sites have Flash ads that slow down the browser unless an analysis.

    Some pages contain 3, 4, 5 or more adobe flash ads running at the same time, which slows down the browser a lot. Then, if you happen to have several tabs open, the browser is dragging virtually interrupted and many times is not responding at all.

    I would like to be able to choose whether or not a page can run flash content - not it be something that works all the time for each page, with the only option being to kill the plugincontainer process in taskmanager - who kills even the Adobe Flash elements you can watch; like a youtube video.

    Why is there not a way to disable Adobe Flash in the browser? I have updated Firefox and Adobe Flash, but nowhere is there at - it an option to turn on or off according to your needs.

    A control can be added to the Internet Options that you can set to have a page request before it is allowed to run the Flash content? Having that kind of control would GREATLY increase the pleasure of sailing on several pages.

    Any information on how to do it, would be appreciated.

    Hello, this is already possible in firefox: go to firefox/tools > addons > plugins and shockwave flash to Activategame. then the plugin will be disabled by default but can be enabled on a site-by-site basis.

  • Why FFx21, from the opening, thus creating three CACHE of INTERNET files duplicate (01, 02, 03 & tot'ng 12 MB) slows down the site?

    On the 'OPENING' Firefox for the web, there is an initial use of 12 + MB of use via INTERNET CACHE files. These files show up, when using CCleaner, as... \_CACHE_001, 002, 003 each with a size of say 4 096 Ko. The browser seems to "lag" - particularly visible when I type in one of the available search bars... I tap and then wait for the letter or the word to display. In addition, Firefox crashed several times since the upgrade to the latest version (ffox 21). I have two images CCleaner printscreen to show files so useful, but not sure how to enter them here.

    Hello, these are the files where firefox stores its cache - you won't need CCleaner (in fact, it will be only slow down the things that you have already noticed, given that these files must be recreated after the next startup of the browser), you can also clear the cache with the mechanism built into firefox: How to clear the cache of Firefox

  • Can I use an SDXC (512MB) card as a drive hard primary (such as startup HD with El Capitan) on my iMac 5 K - end 2015? It will slow down the performance of the iMac?

    Can I use an SDXC (512MB) card as a drive hard primary (such as startup HD with El Capitan) on my iMac 5 K - end 2015? It will slow down the performance of the iMac?

    I did it with a 32GB SDHC UHS - I Transcend

    I do not recommend under OS X from such media, but it works very well. I was preparing for my review of the CPHA Yosemite and did not want to mess with the internal drive of OS X.

  • Slow down the automatic transition

    Hello!

    I'm working on an introductory presentation with automatic switching between slides. I want to slow down the presentation (I tried to put a 15 seconds delay) but it keeps on changing every second...

    Can someone help me?

    (I must say that my speech is in french... so I hope I used the right conditions...!)

    The procedure is:

    Select all of the slides in the Panel of the browser (click on a slide and then use: control)

    Inspector > Animation > add an effect of > select the effect in the list

    on the start menu, transition drop-down list box select automatically

    change the time of 15 seconds (double-click the entry, type in 15 and then on enter)

    This not work?

  • Slow down the Audio and keep beat related Sections

    Hello people,

    I have a song that I would like to remix and I all set beat matching.  When I go to slow down the audio I lose my bearings.  Is there anyway that I can keep the sections that I beat matched and slow down the audio so these sections remain?

    For example, that the song is 120bpm and I have this rhythm corresponded perfectly.  If I have a loop of 4 bars and slow down the audio I have more 4 perfect bars.  I want to be able to slow down the audio and still have my bars 4 faultless.

    I hope that makes sense.

    Logic Pro X: using Varispeed to change speed

  • Slow down the speed of FAR FAR AWAY in iMovie 10.1

    In iMovie 10.1 FAR FAR AWAY effect scrolls too fast and I don't think I should buy a market after effect fix a bug. How can I slow down the speed of the text please?  Roll the credits cost $20 and it will not work with updates so it is not an option, in addition to its construction in already, it is adjustable and now is not!  HELP PLEASE

    See that work around posted by Vanessa D 19 dec in this link

    Slow down the title Far Far Away in iMovie 10.1?

    I don't use version 10 so can't comment, but the link it seems to work.

  • is it possible to slow down the speed of scrolling text in the distance away from text generator?

    I'm trying to slow down the speed of text scrolling in the distance away from text generator.  Is it possible to make the text scrolls more slow?

    Stretch it to extend it.

  • Flex 2 network slows down the entire network

    I bought a Flex 2 a few weeks ago. Installed the software Office 365 and creative cloud by Adobe. Everything worked well on both networks, I connect to.

    Today, performance on the entire network is now gone to the dogs. At first, I suspected the provider or router so crossed all the routines of standard service (this disconnect, which reboot) again and again. Same face, deadly slow performance of several PC and Mac on the network.

    Then, I hit on the idea to close my Lenovo. Suddenly, network download speed of 2 MB/s and the ping from 2000 MS to more normal speeds returned.

    I restarted the Lenovo a couple of times, from 2, 4 GHz to 5 with the same result.

    At some point when I plugged the Lenovo directly into the modem (part of the diagnosis) direct speed seemed faster.

    Because the router works perfectly with all the other machines and I haven't changed a thing on it, and because the symptoms get carried away on the network when the Lenovo is cut, I can only assume that there is something to do with the Lenovo Flex 2 and how it communicates with the rest of the network.

    I should also add that I tried to plug an ethernet cable to make sure that it wasn't just a wireless thing. Still had the slow performance.

    I'm pulling my hair out over this, if I can't fix it, I can't work (no one in my office will be able to work) and will have to return the machine...

    Any ideas?

    Thank you...

    Thanks for the reply.

    After much pulling hair and analysis where the traffic was, it turns out it was a Microsoft cloud service a too aggressive drive that decided to download dozens of large files at the same time instead of in series. This excessive series of connections slowed down the rate of time and transfer of ping everything on the network. Disable updates for OneDrive during periods of work seems to have solved the problem.

    That said, working on this, I see that updates from Lenovo is continually a significant overhead. Do not understand why it takes so resources...

    Thanks again for the response...

  • Prevent the Beep.vi slow down the VI

    Hello

    I'm working on a metronome that should run for a period of x with a frequency of x. The time is in seconds and rate.

    Whenever there is the beet, the VI must make a beep. This can be done easily by the beep.vi, but the standard for the beep.vi is to play one system.

    This is a fairly long tone (10 of Windows). And so, I want to put my own frequency and duration of the beep.

    But when I change this in the beep.vi, the VI will wait for the set time (msec) before it continues the vi. If it slows down the whole VI.

    Is there a way to make the beep.vi a sound signal with frequency and duration that I put, without that it slows down the VI?

    Thank you!

    Have the code "beep" performed asynchronously to your hand VI: have the VI in another loop and use a queue / notifier to notify the loop when playing the main loop.

  • How to slow down the audio Windows Player speed, for language learning purposes?

    How to slow down the audio Windows Player speed, for language learning purposes?

    I assume you mean videos with speeches.

    1. start playback of the video.

    2 right click on the video then go it to improvements then the playback speed settings.

    You can control the speed of this Panel.

  • My Vista crashed and I've switched back to XP. Now I have 1mil more old files compressed that I can't get rid of and it slows down the computer. How can I get rid of these files

    My Vista crashed and I've switched back to XP. Now I have 1mil more old files compressed that I can't get rid of and it slows down the computer. How can I get rid of these files.

    Hello

    1 are. what type of files?
    2. when they are stored?

    3. What is the size of these compressed files?

    Try to perform the clean boot on the computer and check if that helps.

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    See the bottom of the articles that might help you resolve this problem.
    How to make a computer faster: 6 ways to speed up your PC
    http://www.Microsoft.com/atwork/maintenance/speed.aspx
    Slow PC? Optimize your computer for peak performance
    http://www.Microsoft.com/athome/Setup/optimize.aspx

  • I have 2 accounts directors and 1 standard account on my computer, it will slow down the speed of the computer

    I have 2 accounts directors and 1 standard account on my computer, it will slow down the speed of the computer, or if I have just 1 Administrator account it will make computer run faster

    N °

    Unless you are logging in to each account and switching between them - have each user run a lot of things.  Now * that * could slow down the computer.

    Otherwise, it's just - unused accounts unless you connect to them.  Again, storage space and unil you get below a few GB of free it - not no more worries.

  • Is it possible to slow down the movement of the cursor?

    I want to slow down the speed of the cursor.

    You can adjust the speed in Control Panel > mouse > Pointer Options . Boulder computer Maven
    Most Microsoft Valuable Professional

Maybe you are looking for

  • Satellite Pro A120 - 2GM RAM but only 896 MB recognized

    HelloI have the same model and similar problem then would not start a new thread. I just removed the stick a 512 mb and replaced with 2 sticks of 1 GB, but when I check in system information it shows only 896 MB.This should be about 1 800 MB, I think

  • difference between mathscript and matlabscript

    Hi iam new to labview and learning n do labview project What is the difference between mathscript and matlabscript I want to do the simulation using matlab How can I do If one suggests this Please answer and provide assistance so that I will perform

  • My new phone P780... issues (a lot of)

    Hi to everyone. I'm new to this forum, asking lots of questions about my new phone P780. I'm Italian, I'm living in Latvia for some time, and yesterday I bought this form (very pretty) phone another user, then the phone is used. the phone has 1 GB of

  • You can convert a voice file to a text file

    I used before Vista speech recognition capabilities, however, I recently bought a digital recorder and the system will only allow me to download the file.  Is there a way to convert the voice file downloaded in a text file?

  • Need help to understand the last string on my Win 7 BSOD. The Minidump files are attached.

    Hello Since last week, I've known several BSOD. Some have referred to a memory problem, but after you run a memory diagnostic seveal times, I still have to find the problem. Since last week, here is the link to the minidump files. https://onedrive.li