Why does this work in Script Editor but not in Script Debugger:
use AppleScript version "2.4"
use scripting additions
use framework "Foundation"
use framework "AddressBook"
-- classes, constants, and enums used
property NSPNGFileType : a reference to 4
property ABAddressBook : a reference to current application's ABAddressBook
set imgData to ABAddressBook's sharedAddressBook()'s |me|'s imageData()
Script Editor accepts |me|'s, Script Debugger does not.