🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10117

Re: Script to select certain styles

#10117
From: iswan
Date: Thu, 06 Jul 2006 05:28
15 lines
1136 bytes
Hai Dave,
             "app.changePreferences.appliedParagraphStyle" works in my machine.
            You try the below code. It is slight modified on your code.

if (app.documents.length == 0) { exit() }

aDoc = app.activeDocument;
myStyle = aDoc.paragraphStyles.item("BodyText"); // Use your style name
app.findPreferences = null;
app.changePreferences = null;
app.findPreferences.appliedParagraphStyle = myStyle;
app.changePreferences.appliedParagraphStyle = myStyle;
myFinds = aDoc.search("",false,false,"");

Iswan
Technical Details
Message-ID: <3bc0d10c.5@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing
References: <3bc0d10c.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fe777e15d8f79e88
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: iswan@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Script to select certain styles
Message-ID: <3bc0d10c.5@webcrossing.la2eafNXanI>
Date: Wed, 5 Jul 2006 22:28:59 -0700
References: <3bc0d10c.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing