Article View: adobe.scripting.indesign
Article #461Re: Find based on style in CS2
From: Baljeetsingh
Date: Sat, 21 Mar 2009 12:13
Date: Sat, 21 Mar 2009 12:13
25 lines
1130 bytes
1130 bytes
Hi Glen
I work out on this script now
here is what i want
var myDoc = app.activeDocument;
var myStylename = myDoc.paragraphStyles.everyItem().name;
var myStyles = myDoc.paragraphStyles;
var mySlen = myStyles.length;
for (var j=1; mySlen > j; j++)
{
if (myStyles[j].basedOn != myStylename[0])
{
alert("Your used wrong basedon style in " + myStyles[j].name + "\r Rectify it and run script agian");
exit();
}
}
alert("Your all Paragraph style based on " + myStylename[0])
but i really thanks for your response
Shonky
Technical Details
Message-ID:
<59b83b0b.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b83b0b.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fcb4ba3ed0cb3ee3 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Baljeetsingh@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Find based on style in CS2 Message-ID: <59b83b0b.2@webcrossing.la2eafNXanI> Date: Sat, 21 Mar 2009 05:13:30 -0700 References: <59b83b0b.-1@webcrossing.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit