You must be logged in to post Login

Search Forums:


 






InDesign Script for finding bulleted text

UserPost

10:01 am
October 27, 2011


jwdes

Basingstoke

Community Member

posts 4

Can any smart scripter out there help me. Am having to work in InDesign CS4 on this.

Using the Adobe Find/Change script, need to know what to put in the text file in order to find bulleted text. Have looked at the ExtendScript Toolkit but dont find it at all user friendly. I need to end up with something like "text {ListType.BULLET_LIST} {appliedParagraphStyle: …}. I want the script to be find text that is already bulleted so that I can apply a Paragraph Style to it. 'ListType.BULLET_LIST' is obviously wrong, cos the script wont work. With thanks, jwdes.

1:49 pm
October 29, 2011


Kasyan Servetsky

Kiev, Ukraine

Member

posts 65

Here is an example:

text tab {findWhat:"", bulletsAndNumberingListType:ListType.BULLET_LIST}tab {changeTo:"", appliedParagraphStyle:"Paragraph Style 1″}tab … and so on…

Tested in CS5.5 for Windows.

3:56 am
October 31, 2011


jwdes

Basingstoke

Community Member

posts 4

Kasyan, thank you so much, you are a star! That works fine in Mac CS4 too.

May I ask how you gained your knowledge of scripting? Is there a good manual that you use? As I said in my original question, the Toolkit is not easy to follow. Thank you again, jwdes

12:35 pm
October 31, 2011


Kasyan Servetsky

Kiev, Ukraine

Member

posts 65

Here I posted some links that might be useful for baby-scripters. I started scripting in 2004. Before I had nothing to do to programming. I tried all the three scripting languages: Visual Basic, Apple Script and JavaScript. In my opinion, the best choice is JavaScript — it's cross-platform, and you can find more support on scripting forums because it's the most popular. Though knowing other languages helps me a lot too.

In conclusion, I want to say an important thing: absolutely everybody can write scripts — just invest some time and effort into learning and you'll get your investment back hundredfold.

Regards,
Kasyan

1:32 am
November 1, 2011


jwdes

Basingstoke

Community Member

posts 4

Thank you again Kasyan. I can't see the links that you mention.

jwdes

1:08 am
November 2, 2011


Kasyan Servetsky

Kiev, Ukraine

Member

posts 65

1:19 am
November 2, 2011


jwdes

Basingstoke

Community Member

posts 4

Excellent. Thank you again Kasyan.