Quick update - just tried the same code in a vbscript run from the scripts panel in Indesign and the font applies to the text without a problem.....much scratching of head ensuing!
try this code,
myParagraph.AppliedFont = app.fonts.item("Helvetica Neue");
is not a tested code.
Thanks for the suggestion.
Tried your code but get same error - Font family not found....
Check if the font name is avail in the indesign applicatio.
for (var i=0; i<app.fonts.length; i++)
If the font name is avail in the application means the above given code will works. otherwise the font is not availabel so you need to install the fonts in application.
I am getting the font names and styles from the indesign app font list....this is what is confusing! The name is the same as it appears in the font menu in the app - the vb script run from the scripts panel can use the font. Seems to be external apps that can't 'see' the font. I have also tried different font names as suggested in the font readme file but no joy there either.
I'm thinking of suggesting we get rid of type 1's......