Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

find text properties and change with created paragraph styles

$
0
0

Hi Forum!

 

Im trying to do something new of myself!.

 

First Step: I  store the text properties of the insertion point[0] in findTextPreferences.

Second step:  I create the paragraphStyles with the properties of the findTextPreferences.properties.

 

now the paragraphStyle is created with the properties of the insertion point[0].

 

and then,  Im trying to apply the created paragraphStyle  to the cusor point (insertion point[0]). but i cannot.

 

Can anyone help on this please. Here my code.

 

app.changeTextPreferences = NothingEnum.NOTHING;

app.findTextPreferences = NothingEnum.NOTHING

mySelection=app.selection[0]

app.findTextPreferences.properties =mySelection.insertionPoints[0].properties; [First Step:]

    app.activeDocument.paragraphStyles.add().properties=mySelection.inser tionPoints[0].properties;

[ Second Step:]

 

app.changeTextPreferences.appliedParagraphStyle.name = ????????? (here I want to apply the created paragraphStyle);

app.changeText();

app.changeTextPreferences = NothingEnum.NOTHING;

app.findTextPreferences = NothingEnum.NOTHING

 

thanks

Shil!...


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>