AppleScriptObjC in Xcode Projects: The Gotchas
There are some subtle differences in the syntax you use in AppleScriptObjC in Cocoa-AppleScript class files in Xcode, compared with elsewhere. Perhaps the biggest trap is in the use of alias, POSIX file, file, and date as specifiers.
Theses and other gotchas are documented in the book 'AppleScriptObjC Explored'. You can download the section on the specifier problems from the Fourth Edition free here: 'AppleScriptObjC Gotchas II'.