2 Nov 2009 15:15
Re: Attn Sheri! How to create global autocomplete?
--- In powerpro-beginners@..., Brother Gabriel-Marie <brgabriel <at> ...> wrote: > > That sounds like an idea. I will have to ponder that for awhile > till I find the time to defeat the learning curve on both the > adobe scripts and the powerpro coding... when I get there, I will > sure see if you are willing to help me. First thing to do then, > is to learn the Code Accelerator. I am also attempting to learn a > little adobe scripting. So we'll see where to go from there! > Thanks for all your help so far. In case you are struggling, if you use the CA file format with one line per item, e.g. from=to this=that ..etc... fwiw, the following script would process them all. The last argument, btrialrun, can be set to 1 for testing purposes. If InDesign is not open, brialrun is automatically set to 1. Either way a log file is kept. If replacements are processed, it will tell you how may replacements were made for each set of from/to. The script puts all the from's and to's into a 2d vector by processing the contents of the chgfile with a regular expression in regex.pcrematchall. It then logs and processes (unless its a trial run) each set in a powerpro "for" loop. A sample call to it would be: .nameofscript <at> IndesignReps(?"C:\path to chgfile\file.txt", 1, 1, 0) Regards, Sheri(Continue reading)
RSS Feed