🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #317

Re: Clear text overrides in applescriot for Indesign CS3 on Mac OSX 10.5.6

#317
From: jongware
Date: Wed, 25 Mar 2009 23:23
32 lines
1512 bytes
Yes, it is that simple. To find a particular font "Dingbats", just supply the name:

      app.findTextPreferences.appliedFont = "Dingbats";




If you need to discern different styles of a same font, append the style name after the font name, with a tab inbetween:

      app.findTextPreferences.appliedFont = "Dingbats\tRoman";




and

      app.findTextPreferences.appliedFont = "Dingbats\tItalic"; // (ugh!)




(the "\t" is a tab character in a JavaScript string).

Be sure to reset findTextPreferences to zero just before these lines, to avoid contaminating the "find" dialog with previously set parameters. That's what the lines



app.findTextPreferences = NothingEnum.nothing;

app.changeTextPreferences = NothingEnum.nothing;

do at the start of each of my change loops -- they reset the Find dialog to entirely empty.
Technical Details
Message-ID: <59b86485.19@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b86485.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,eb2cfe05176434d3
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Clear text overrides in applescriot for
 Indesign CS3 on Mac OSX 10.5.6
Message-ID: <59b86485.19@webcrossing.la2eafNXanI>
Date: Wed, 25 Mar 2009 16:23:42 -0700
References: <59b86485.-1@webcrossing.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit