Skip to main content
Legend
September 12, 2025
Question

[ExtendScript] Set character and paragraph attributes without being ignored

  • September 12, 2025
  • 1 reply
  • 220 views

The setAttribute function in this script addresses an issue where specified text attributes are ignored when their values match the default values of the applied character or paragraph styles.

 

Since writing workaround scripts every time someone ran into this issue became tedious, I created this as a more generalized solution that reliably applies all text attributes.

 

Just sharing it in case it's useful to others.

1 reply

m1b
Community Expert
Community Expert
September 12, 2025

Thanks so much @sttk3. I will keep a bookmark of this!

- Mark