Auto-hyphen identifier
Hi,
If we have any special character to find the auto-hyphen for the end of line?
| if(myFound.lines[0].characters[-1].contents == 'special character for auto-hyphen') |

Hi,
If we have any special character to find the auto-hyphen for the end of line?
| if(myFound.lines[0].characters[-1].contents == 'special character for auto-hyphen') |

Try this,
var doc = app.activeDocument,
_stories = doc.stories;
for(var i=0;i<_stories.length;i++)
{
var _lines = _stories.lines;
for(var j=0;j<_lines.length;j++)
{
if(_lines
.words[-1].lines.length >=2) {
alert(_lines
.words[-1].contents) }
}
}
Regards,
Chinna
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.