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.


script indesign myCharacterStyle = substring

Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Bonjour,

 

je voudrais modifier le script CreateCharacterStyle.vbs à la ligne Position

myCharacterStyle.AppliedFont = myInsertionPoint.AppliedFont
myCharacterStyle.FontStyle = myInsertionPoint.FontStyle
myCharacterStyle.PointSize = myInsertionPoint.PointSize
myCharacterStyle.Leading = myInsertionPoint.Leading
myCharacterStyle.AppliedLanguage = myInsertionPoint.AppliedLanguage
myCharacterStyle.KerningMethod = myInsertionPoint.KerningMethod
myCharacterStyle.Tracking = myInsertionPoint.Tracking
myCharacterStyle.Capitalization = myInsertionPoint.Capitalization
myCharacterStyle.Position = myInsertionPoint.Position

pour parvenir à mettre le style de caractère en 'indice' (substring)

j'ai cherché dans différent scripts, mais je ne trouve pas la solution.

j'ai testé :

myCharacterStyle.Position = myInsertionPoint.Position.substring

myCharacterStyle.Position = myInsertionPoint.idPosition.substring

myCharacterStyle.Position = Position.substring

TOPICS
Scripting

Views

54

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 , Jul 20, 2021 Jul 20, 2021
Try the following idPosition.idSuperscript // for superscript idPosition.idSubscript //for subscript -Manan

Likes

Translate

Translate
Adobe Community Professional ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Try the following

idPosition.idSuperscript // for superscript

idPosition.idSubscript //for subscript

-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
Explorer ,
Jul 21, 2021 Jul 21, 2021

Copy link to clipboard

Copied

LATEST

thank you for your answer, it's ok now

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