Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Indesign Scripting: Bullet List Unicode

Community Beginner ,
Oct 25, 2021 Oct 25, 2021

Copy link to clipboard

Copied

Hi there,

 

i am trying to get a certain unicode id of "003E". i cannot find out how to add this to a paragraph style i am creating. Also the color of the bullet. Any help will be appreciated!

 

 

var myDoc = app.activeDocument;
var text = "Poppins";
var bold = "Bold";
var regular = "Regular";
var bulletType = "003E";

bulletList = myDoc.paragraphStyles.add(
  {
    name : 'Main Bullets',
    appliedFont : text,
    fontStyle : regular,
    pointSize : 12,
    bulletsAndNumberingListType : ListType.BULLET_LIST,
    bulletsAndNumberingSize : 14,
    bulletsCharacterStyle : bold,
    bulletsandNumberingColor : "Red"
  }
 );

 bulletList.tabStops.add(
   {
     position : "0p18"
   }
 );

 

 

TOPICS
Scripting

Views

92

Likes

Translate

Translate

Report

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

Adobe Community Professional , Oct 25, 2021 Oct 25, 2021
Hi @kyleo94921011, Try the following var text = "Poppins"; var bold = "Bold"; var regular = "Regular"; var bulletType = "003E"; bulletList = myDoc.paragraphStyles.add( { name : 'Main Bullets', appliedFont : text, fontStyle : regular, pointSize : 12, bulletsAndNumberingListType : ListType.BULLET_LIST, bulletsAndNumberingSize : 14, bulletsCharacterStyle : bold, bulletsandNumberingColor : "Red" } ); bulletList.bulletChar.characterType = BulletCharacterType.UNI...

Likes

Translate

Translate
Adobe Community Professional ,
Oct 25, 2021 Oct 25, 2021

Copy link to clipboard

Copied

[Moderator moved from Coding Corner to InDesign.]


Nancy O'Shea, Adobe Product User & Community Professional
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Oct 25, 2021 Oct 25, 2021

Copy link to clipboard

Copied

Hi @kyleo94921011,

Try the following

var text = "Poppins";
var bold = "Bold";
var regular = "Regular";
var bulletType = "003E";

bulletList = myDoc.paragraphStyles.add(
  {
    name : 'Main Bullets',
    appliedFont : text,
    fontStyle : regular,
    pointSize : 12,
    bulletsAndNumberingListType : ListType.BULLET_LIST,
    bulletsAndNumberingSize : 14,
    bulletsCharacterStyle : bold,
    bulletsandNumberingColor : "Red"
  }
 );

bulletList.bulletChar.characterType = BulletCharacterType.UNICODE_ONLY
bulletList.bulletChar.characterValue = 0x003e
 bulletList.tabStops.add(
   {
     position : "0p18"
   }
 );

-Manan

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Oct 25, 2021 Oct 25, 2021

Copy link to clipboard

Copied

Hi.

I ran the code, and the addition of the burette worked fine.
The color is specified by setting the bulletCharacterStyle property.

So you need a predefined characterStyle to use for that.

Likes

Translate

Translate

Report

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 ,
Oct 26, 2021 Oct 26, 2021

Copy link to clipboard

Copied

LATEST

awesome thank you guys for all the help!

 

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Oct 25, 2021 Oct 25, 2021

Copy link to clipboard

Copied

The complete list of properties that can be accessed for bullet can be looked at the following link

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Bullet.html

-Manan

Likes

Translate

Translate

Report

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