I’d like to know, how is it possible to get the current kerning value of a character in InDesign. I would like to add some specific value to the current kerning value.
There’s a way to get the kerning value with something like this:
tell application "Adobe InDesign CS6"
tell document 1
set kerningValue to kerning value of character X of text of text frame 1
end tell
end tell
But I get an error, when the “Optical” Kerning Method is choosed. (See image below)
Hi. Characters don’t possess that property but spaces do. An individual character’s insertion point 1 and 2 are the respective spaces to either side of it. You can also target by index.
tell application "Adobe InDesign CS3"'s document 1 to story 1's insertion point 13's kerning value
tell application "Adobe InDesign CS6"
tell document 1
set countStories to count stories
repeat with i from 1 to countStories
set storyContent to contents of story i
if storyContent contains "%" then
tell story i
set currentInsertioPoint to insertion point 5's kerning value
set kerning value of insertion point 5 to currentInsertioPoint + 60
end tell
end if
end repeat
end tell
end tell