Keychain Scripting Returns Password as Property List?

I have googled and searched the forums. I can find no mention of this.

At some point, my scripts that grab a password from a secure note in the keychain stopped working. I figured out that Keychain Scripting is returning the “password” property as a property list. Weird.

I checked the Keychain Scripting dictionary and it still says the “password” property is returned as a string. I suppose an XML property list is a string, but still. Is XML really necessary to return a password? Now I’ll have to parse a property list just to get the password string.

Why does it return a property list rather than a string?


Model: MacBook Pro Intel Core i7
AppleScript: 2.1.2
Browser: Firefox 4.0b12
Operating System: Mac OS X (10.6)