Liguature

Dear Friends,
See my script below, Error found in H1 style line, how to rectify this error,
myDoc=app.documents.item(0);
for (i=1; i<myDoc.paragraphStyles.length; i++);
myPstyle=myDoc.paragraphStyles.item(i);
if (myPstyle.name=="H1"); {
    myPstyle.hyphenation=false;
myPstyle.ligatures=false;
Thanks
kanagakumar

It's not my coding style.
But remove the semicolons
here:
for (i=1; i<myDoc.paragraphStyles.length; i++);
and here:
if (myPstyle.name=="H1");

Similar Messages

Maybe you are looking for