質問
Accessing OTF stylistic sets vis applescript
Hi community,
I’m trying to access the stylistic sets of a font via applescript. Unfortunately, my script is not behaving as it should. Although it works in principle. Here is the script so far:
tell application "Adobe InDesign 2022"
tell every character of selection
set OTF stylistic sets to 0
end tell
set varNum to number of characters of selection
repeat with i from 1 to varNum
tell character i of selection
set myVar to 7 -- what i actually want is: random number from 0 to 18
set OTF stylistic sets to myVar as integer
end tell
end repeat
end tell
No matter which font I use, I get the following result:

What am I doing wrong?
