Skip to main content
Inspiring
February 9, 2023
Answered

Set Kerning/Tracking Increment with a Script

  • February 9, 2023
  • 2 replies
  • 720 views

Trying to set the Edit > Preferences > Units & Increments > Kerning /Tracking value with a script.

 

Is that not part of the object model?

 

Thanks,

Ken

This topic has been closed for replies.
Correct answer rob day

Hi @KenWK , They are set in the textPreferences object. For the application it would be

 

app.textPreferences.kerningKeyIncrement = n

 

 

and for the doc it would be

 

 

app.activeDocument.textPreferences.kerningKeyIncrement = n;

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextPreference.html

 

2 replies

Derek Cross
Community Expert
Community Expert
February 9, 2023

What about setting your tracking within your Paragraph Styles?

KenWKAuthor
Inspiring
February 9, 2023

Thanks for responding Derek. We're working with 1,500 or so files created by someone else and will likely need to kern some things to fit as they did before and anything I can set with a script will be helpful.

 

Best,

Ken

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
February 9, 2023

Hi @KenWK , They are set in the textPreferences object. For the application it would be

 

app.textPreferences.kerningKeyIncrement = n

 

 

and for the doc it would be

 

 

app.activeDocument.textPreferences.kerningKeyIncrement = n;

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextPreference.html

 

KenWKAuthor
Inspiring
February 9, 2023

Oy-vey. Thanks Rob. No bleeping idea how I missed that in the VBA object model.

 

Thanks too for the great we page.

 

Best ,

Ken