This what your looking for?
var doc = app.activeDocument; app.changeGrepPreferences = app.findGrepPreferences = null; app.findGrepPreferences.findWhat = "\\w+[-~=~-~_]"; var myFinds = doc.stories.everyItem().lines.everyItem().words[-1].findGrep(); myFinds = myFinds.concat.apply(,myFinds); var l = myFinds.length, pp; while (l--) myFinds[l] = myFinds[l].words.contents + ((pp = myFinds[l].parentTextFrames.properties.parentPage) ? "\tPage Name: " + pp.name + "\tPage offset: " + pp.documentOffset : "\tWord off the page"); alert (myFinds.join("\r"));
First, thanks for your response....
Your script is finding all the manual hyphenation between the words.
But my request, is it possible to find the hard (or manual) hyphenate word with enable dynamic spelling(red line for misspelled words) only.
I don't really know what you mean by hard or maual hyphens if you mean a plain minus sign - hypen then just change the grep to
Regarding spelling you can only script it if you pay for Mindsteam spell check pro (google it) or write your own C++ plug-in and use the kspelling properties.
Thank you for spending your valuable time for my request.
I think so, it is not possible through script.
May the below similiar URL, helps you to understand my request more clearly.