Skip to main content
Known Participant
August 8, 2008
Question

Problem in searching paragraph styles in CS3..

  • August 8, 2008
  • 1 reply
  • 316 views
Hi,

I am trying to search a particular paragraph styles name through my script. if it is not found means i'll remove that particularly paragraph style. but some times my script shows a incorrect paragraph styles name.

am using findGrepPreference to search the paragraph style name..

By,
Subha_Oviya
This topic has been closed for replies.

1 reply

Participating Frequently
August 8, 2008
Hi Subha

app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item("Text_8");
var Res1 = app.activeDocument.findText(true);
alert(Res1.length)

It will search the text which contains the paragraph style "Text_8" and the result will be in Res1 variable

Luzzi