Seems simple enough:
tellapplication"Adobe InDesign CS5.5"
tellactive document
setmyCharacterStyletomakecharacter stylewith properties{name:"Year",size:26.0,fill color:"Paper",stroke color:"Black",stroke weight:0.75, font:"Helvetica", font style:"Black"}
setmyCharacterStyletomakecharacter stylewith properties{name:"Years",size:18.0,fill color:"Black",stroke color:nothing,stroke weight:nothing,horizontal scale:80.0,vertical scale:80.0,font:"Helvetica",font style:"Black"}
setmyParagraphStyletomakeparagraph stylewith properties{name:"Year"}
setnested stylesofmyParagraphStyleto{{applied character style:"Year",repetition:1,inclusive:false,delimiter:any word},{applied character style:"Years",repetition:2,inclusive:true,delimiter:any word}}
endtell
endtell
The font and the point size do not come through when the style is created. The nested styles also do not come through.
I tried applied font:"Helvetica" to get 'font family not available'. Also, font:font "Helvetica"...
What I get right now I is no font defined or size. The rest works.
So what am I doing wrong here?