AppleScript名:ロシア語(ru)のシステムスペルチェック辞書を指定して学習 |
— Created 2017-05-12 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use framework "Foundation" use framework "AppKit" use scripting additions –http://piyocast.com/as/archives/4635 set theChecker to current application’s NSSpellChecker’s sharedSpellChecker() set langList to (theChecker’s availableLanguages()) as list –> {"en", "en_GB", "en_CA", "en_IN", "en_SG", "en_AU", "en_JP", "fr", "da", "de", "es", "it", "nl", "nb", "pl", "pt_BR", "pt_PT", "fi", "sv", "tr", "ru", "ko"} set curCheckerLang to (theChecker’s |language|()) as string –> "en_GB" set aWord to "Su-35" theChecker’s setLanguage:"ru" theChecker’s learnWord:aWord set knewIt to theChecker’s hasLearnedWord:aWord –> true set curCheckerLang to (theChecker’s |language|()) as string –> "ru" |
More from my site
(Visited 29 times, 1 visits today)