Skip to main content
dublove
Legend
Oct 1, 2025 11:42 AM UTC
Answered

Where is the “Inner Margin” option for enableTextFrameGeneralOptions? I can't find it.

I don't know what its English name is.
So I often can't find it.

Perhaps it should be called TextFrameOptions.

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ObjectStyle.html
In the English version ID, is what I see on the interface the same as the name in ExtendScript?

 

Perhaps it's here? But I'm not sure which one.
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ChangeObjectPreference.html

 

Peter Kahrel
Peter KahrelCorrect answer
Community Expert
Oct 1, 2025 1:52 PM UTC

insetSpacing

5 replies

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
Oct 1, 2025 1:52 PM UTC

insetSpacing

Translate
dublove
dubloveAuthor
Legend
Oct 1, 2025 2:22 PM UTC

Thanks Peter Kahrel
Thanks

 
app.documents[0].objectStyles.itemByName(AA).properties =
{
textFramePreferencesInsetSpacing: [6, 0, 0, 0],
Spacing: [6, 0, 0, 0],
}
Neither of these worked.

 

Can't it be written in the properties?
Is this the only way to write it?

app.documents[0].objectStyles.itemByName(“AA”).textFramePreferences.insetSpacing = [6, 0, 0, 0]
Translate
Peter Kahrel
Community Expert
Community Expert
Oct 1, 2025 2:54 PM UTC

Your first code sample doesn't work because AA should be in quotes and the properties should be like this:

 

app.documents[0].objectStyles.itemByName('AA').properties =
{
textFramePreferences : {insetSpacing: [6, 0, 0, 0]}
}

 

Your second codde sample doesn't work because you used curly quotes. Use straight quotes and the one-liner works fine.

 

app.documents[0].objectStyles.itemByName('AA').textFramePreferences.insetSpacing = [6, 0, 0, 0]

 

Translate