4 Replies Latest reply on Jun 22, 2015 1:38 AM by alicinki

    CS3 FindChangeByList error

    Phil Frank Level 1

      I'm a pretty new ID user and am not an ID scripter, but I'd like to be able to use the FindChangeByList script. So I made myself a text file and ran the script (using the updated javascript script I found online dated 5/17/07. I'm running Windows XP Pro SP2 on a new Dell Optiplex 755 with 4gb RAM.

      The purpose of my attempt at using this script is to replace seven Greek acute accent glyphs with seven more pleasing glyphs from the same font.

      Here is the text of one of the lines from my text file:

      glyph {findWhat:"03AC"} {changeTo:"1F71"} {includeFootnotes:false, includeMasterPages:false,
      includeHiddenLayers:false, wholeWord:false}
      find bad acute vowel and replace with good one.

      And here is the error message I got.

      JaveScript Error!
      Error Number: 33801
      Error String: Invalid Find Font
      Line: 205
      Source: var myFoundItems = myObject.changeGlyph();

      I didn't make any changes to the jsx file.

      Any ideas or suggestions would be greatly appreciated.

      Phil Frank
        • 1. Re: CS3 FindChangeByList error
          Nlwest User Group Manager
          Phil, sorry, I don't have an answer for your scripting. But I remember your name from the Ventura conferences I attended, oh, so many years ago. Since you're a step ahead of me in converting from Ventura to InDesign, could you take a look at my topic? It has to do with my confusion about how to handle Object styles so they work like Frame Tags:

          Topic: Object style: Fixed height width x y position

          Robert Levine, "Object style: Fixed height width x y position" #1, 27 Aug 2008 2:25 pm

          Thanks so much! Since we'll be getting into scripting after this initial conversion, maybe I'll be able to help with your question then
          • 2. Re: CS4 FindChangeByList error

            I am having the same issue as the one listed below. I am using CS4, but I think the code is the same as CS3.


            I spent the better part of a day trying to figure out how to format a glyph entry in FindChangeByList.txt. I am pretty sure my format of findWhat: and changeTo: is wrong, but I can't find a full example of anything that works.


            glyph    {findWhat:"2018'"}    {changeTo: "2019", appliedCharacterStyle:"normal"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:true}    Replaces upside-down single quote.


            Can someone please explin the correct format or show me a working command?

            • 3. Re: CS4 FindChangeByList error
              [Jongware] Most Valuable Participant

              I bet you are confusing glyphs with unicodes.


              The Replace Glyphs option is to replace "glyph #10234" in some font with "glyph #584". This can be useful, say, to replace one style of arrow in Minion Pro with another (where both have the same Unicode but different glyph numbers).


              In your example you mention "2018" and "2019", with a comment to two single quote characters. Those are not glyph indexes, but Unicodes! So you cannot use the Glyphs option, you should use either the regular find/change or GREP -- whatever works best.


              (The notation of unicode characters is slightly different for regular and GREP, so you'd better double check what you are going to use.)

              • 4. Re: CS3 FindChangeByList error
                alicinki Level 1

                Can you write a sample line for changing glyphs that we can use with FindChangeByList script please.