Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create bullet paragraphstyle through indesign javascript

Community Beginner ,
Dec 29, 2018 Dec 29, 2018

Hi all,

Anyone please help me to complete my javascript coding. I want to create a paragraph style through script as a bullet character, everything is fine, but the bullet character has a tab separation is too long.

Coding:

var doc = app.activeDocument;

doc.paragraphStyles.add({name:"Bullets", appliedFont:"Arial", fontStyle: "Regular", pointSize:7, leading:10.5, bulletsAndNumberingListType: ListType.BULLET_LIST});

I am getting output like this see the image below

b.JPG

But I want the output something like this, How to set a tab position to 6pt?

b2.JPGCapture.JPG

Thank you

TOPICS
Scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 29, 2018 Dec 29, 2018

The following should do the trick

var doc = app.activeDocument;

var a = doc.paragraphStyles.add({name:"Bullets", appliedFont:"Arial", fontStyle: "Regular", pointSize:7, leading:10.5, bulletsAndNumberingListType: ListType.BULLET_LIST});

a.tabStops.add({position:"0p6"})

-Manan

Translate
Community Expert ,
Dec 29, 2018 Dec 29, 2018

The following should do the trick

var doc = app.activeDocument;

var a = doc.paragraphStyles.add({name:"Bullets", appliedFont:"Arial", fontStyle: "Regular", pointSize:7, leading:10.5, bulletsAndNumberingListType: ListType.BULLET_LIST});

a.tabStops.add({position:"0p6"})

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 29, 2018 Dec 29, 2018
LATEST

Thank you so much for the quick response, now it is working

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines