AppleScript under 10.7 Lion
Hello everyone,
first, I am a beginner with apple and mac os.
I have wrote a script for 10.6 to use the spellchecker within my Java-Program:
tell application "Automator Runner"
set mySpellChecker to call method "sharedSpellChecker" of class "NSSpellChecker"
set foundLanguages to call method "availableLanguages" of mySpellChecker
end tell
which works nice under 10.6
But now under 10.7 even under the applescript console an error occurs at:
tell application "Automator Runner"
set mySpellChecker to call method "sharedSpellChecker" of class "NSSpellChecker"
set foundWords to call method "availableLanguages" of mySpellChecker
end tell
> Expected end of line but found identifier.
Can anyone please give me a hint, what has changed from 10.6 to 10.7. In the Changelog I cant find either an AppleScript change or a change with the spellchecker API. Also other scripts from the web using the "to call method ..." fails with the same error.
Thanks for any reply in advice
Michael Coldewey
Mac OS X (10.7.2)