Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How do I assign a paragraph style to text being added to and existing text frame without changing the existing text?Using AppleScript.

$
0
0

I have and existing text frame that I want to add more text to and at the same time assign a style to that added text.

Then add more text to the same text frame later.

 

I can do it using "set applied font statements"  but what I want to do is use styles for each entry.  Many times the styles are different for each addition.

 

tellapplication "Adobe InDesign CC"

  tellparent storyoftext framexofpage 1 ofdocument 1

 

  setapplied fontofinsertion point -1 to "Chalkduster"

  setpoint sizeofinsertion point -1 to 12

 

  --set character style of insertion point -1 to "New" --Does NOT work

 

  setcontentsofinsertion point -1 toreturn& "Me Either !" & return--inserts after

 

 

endtell


IndesignCC

iMac OSX 10.9

AppleScript

Script DeBugger 5

Xcode 5.1


Thank you

Mike


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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