I'm wondering if we may use ASObjC to get the contents of the files and split them in words after specifying the local linguistic parameters to use. Here, the locale parameters are:
use AppleScript version "2.4" # requires at least Yosemite use scripting additions use framework "Foundation" set thisLocale to current application's NSLocale's currentLocale() thisLocale's countryCode as text log result --> "FR" thisLocale's localeIdentifier as text log result --> "fr_FR" thisLocale's languageCode as text log result --> "fr"
I guess that they are different on the asker's machine.
Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) vendredi 26 mai 2017 18:01:12
|