AppleScript名:システムスペルチェック辞書への学習と削除 |
— Created 2017-01-22 by Shane Stanley use AppleScript version "2.4" use framework "Foundation" use framework "AppKit" use scripting additions –http://piyocast.com/as/archives/4635 –スペルチェック辞書への学習 set theWord to "piyomaru" set theChecker to current application’s NSSpellChecker’s sharedSpellChecker() theChecker’s learnWord:theWord set knewIt to theChecker’s hasLearnedWord:theWord –> true –スペルチェック辞書からの削除 theChecker’s unlearnWord:theWord set knowsItNow to theChecker’s hasLearnedWord:theWord return {knewIt, knowsItNow} –> {true, false} |
More from my site
(Visited 31 times, 1 visits today)