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

Getting (certain) character properties

New Here ,
Jul 10, 2017 Jul 10, 2017

Copy link to clipboard

Copied

Hi all,

Searched in the dom and online and still can't figure it out while I would assume it isn't all too difficult.

I have a characterstyle which has options for a strikethrough.
It (the strikethrough in the tab called something like 'options for strikethroughs') has as options a red color and a certain thickness.
I would like to read those values out but I don't seem to be able to.

With something like the following I can read out certain properties:

character = app.activeDocument.characterStyles[1]; 

alert (character.name); 

alert (character.fillColor); 

But I just can't find how to acces the tab for the strikethrough and/or the thickness and color of it.

Can someone please help,

Many thanks

TOPICS
Scripting

Views

417

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

Guide , Jul 11, 2017 Jul 11, 2017

To know the strike thru color.. like

Screen Shot 2017-07-11 at 1.05.33 PM.png

Votes

Translate

Translate
Guide ,
Jul 11, 2017 Jul 11, 2017

Copy link to clipboard

Copied

You can get all the attribute details in the adobe free script called "CreateChatacterStyles.jsx". Just open and explore

Screen Shot 2017-07-11 at 1.03.19 PM.png

Votes

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
Guide ,
Jul 11, 2017 Jul 11, 2017

Copy link to clipboard

Copied

To know the strike thru color.. like

Screen Shot 2017-07-11 at 1.05.33 PM.png

Votes

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
New Here ,
Jul 11, 2017 Jul 11, 2017

Copy link to clipboard

Copied

LATEST

Thanks a bunch

Votes

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