I have a number of keychain scripts that now seem to be broken since I upgraded to Tiger every time I try to access the keys.password property. When that line is reached I get a dialog box with the following text: “The username or password you entered is not correct”.
Can’t find out if the keychain dictionary has changed or whether the keychain itself has changed - any ideas?
FYI I hardcoded the password and it worked fine.
on getKeyInfo(keyName)
tell application "Keychain Scripting"
set homeKeys to keys of keychain (1)
repeat with currentKey in homeKeys
if name of currentKey is keyName then
exit repeat
end if
end repeat
set keyAccount to account of currentKey
set AppleScript's text item delimiters to {","}
--this line is broken
set keyPasswordInfo to password of currentKey
--this line is broken
end tell
currentKey
end getKeyInfo