I think the syntax for call method requires that parameters get passed
inside of braces. Your first line then should be:
set theDict to call method "dictionaryWithCapacity: of class
"NSMutableDictionary" with parameter {10}
I try as follows. But problem is not solved.
set theDict to call method "dictionaryWithCapacity:" of class
"NSMutableDictionary" with parameter {10}
call method "setValue:aKey:" of theDict with parameters {"hello", "hey"}
set theDescription to call method "description" of theDict
log theDescription -- the result of this log statement is "()"