Adobe ソフトウェアでのスクリプト作成は初めてです。
単語をハイフネーションできる場所を示すスクリプトを書きたいと思います。ビルドインスペルチェッカーからこの情報を取得する方法があるのだろうか。また、現在の言語も考慮する必要があります。
これは私がこれまでに思いついたものです:
// Get the current selection
var mySelection = app.selection;
// Check, if it is a word
if (mySelection instanceof Word) {
// Get the possible hypenation options
var hyphenated =
// Add all hyphenation options to the text string
mySelection[0].contents = hyphenated;
}
大したことではないことはわかっていますが、手動でスペルチェッカーにアクセスする方法が見つかりません。