AppleScript名:ASOCでスペルチェック |
— Created 2015-12-09 14:52:51 +0900 by Takaaki Naganoya — 2015 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AppKit" set aStr to current application’s NSString’s stringWithString:"This is a pen." set aChecker to current application’s NSSpellChecker’s sharedSpellChecker() –’s setLanguage:"en_US") –’s checkSpellingOfString:aStr startingAt:0 aChecker’s setLanguage:"English" aChecker’s checkSpellingOfString:aStr startingAt:0 |
More from my site
(Visited 55 times, 1 visits today)