How to get character left and rigth from insertionpoint [js-CS6]?


couldn't moved further this:

var aa = app.selection[0].insertionpoints[0].words[0];

can't ideas, how use in line command "charat"...

index = app.selection[0].insertionpoints[0].index;

charleftofcursor = app.selection[0].parentstory.characters[index-1];

charrightofcursor = app.selection[0].parentstory.characters[index];

 

peter



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support