Timeline for Applescript to retrieve account and password using keychain scripting
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 3, 2011 at 20:44 | comment | added | Asmus | Indeed, a users keychain is called login.keychain and not username.keychain (unless changed). | |
Mar 3, 2011 at 18:40 | comment | added | Philip Regan | -1728 can be a lot of things, but it typically comes up when a string has a character it doesn't understand (like a character that should be escaped), but it could also simply be the key chain "lorin" doesn't exist and another value is required (I don't have a keychain on my Mac that has my user name). I only offered the above as an example, but it is dated from 2002, so you're going to have to do some tweaking on your end to make it work in something up-to-date and particular to your needs. | |
Mar 3, 2011 at 17:37 | comment | added | Lorin Hochstein | If I try to run this from the AppleScript Editor, I get the error: error "Keychain Scripting got an error: Can’t get keychain \"lorin\"." number -1728 from keychain "lorin" | |
Mar 3, 2011 at 17:21 | history | answered | Philip Regan | CC BY-SA 2.5 |