Article View: adobe.scripting.indesign
Article #541Re: auto font swap
From: sandy9000
Date: Fri, 13 Mar 2009 13:08
Date: Fri, 13 Mar 2009 13:08
10 lines
1052 bytes
1052 bytes
Thanks Fred --
If I want to add paragraph styles to script as well, is this the portion of script I would copy & paste, then modify?
if(myDoc.characterStyles[j].appliedFont == "Adobe Garamond Pro" && myDoc.characterStyles[j].fontStyle == "Bold"){
myDoc.characterStyles[j].appliedFont = "Adobe Whatever Pro"
myDoc.characterStyles[j].fontStyle = "Bold"
Users will be running script on an open InDesign file, would that change beginning (path portion) of script?
s
Technical Details
Message-ID:
<59b82ebd.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b82ebd.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4bc1edf4574cbc50 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: sandy9000@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: auto font swap Message-ID: <59b82ebd.7@webcrossing.la2eafNXanI> Date: Fri, 13 Mar 2009 06:08:22 -0700 References: <59b82ebd.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit