• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CS3 FindChangeByList error

Community Beginner ,
Aug 01, 2008 Aug 01, 2008

Copy link to clipboard

Copied

Greetings,

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
TOPICS
Scripting

Views

977

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 28, 2008 Aug 28, 2008

Copy link to clipboard

Copied

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
!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 14, 2010 Oct 14, 2010

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2010 Oct 14, 2010

Copy link to clipboard

Copied

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.)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 22, 2015 Jun 22, 2015

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines