Re: Keychain scripting appears to be dead
Re: Keychain scripting appears to be dead
- Subject: Re: Keychain scripting appears to be dead
- From: "John C. Welch" <email@hidden>
- Date: Fri, 31 Oct 2003 12:04:07 -0600
On 10/30/03 10:19 AM, "Stephen Jonke" <email@hidden> wrote:
>
My keychain scripts are working in Panther. Here's an example excerpt
>
that works fine:
>
>
tell application "Keychain Scripting"
>
tell keychain 1
>
unlock
>
set theKey to first key whose name is "Some Key Name"
>
set theUsername to (account of theKey) as string
>
set thePassword to (password of theKey) as string
>
end tell
>
end tell
>
>
Steve
The following dies at two levels:
tell application "Keychain Scripting"
set theKeychains to every keychain
set theKeychain to item 1 of theKeychains
set theKeys to every key of theKeychain
set theKey to first key whose name is "ftp.concentric.net"
end tell
Line three returns a list of zero items, it should return a list of 285 keys
Line 4 creates an error:
" Keychain Scripting got an error: Can't get key 1 whose name =
"ftp.concentric.net"."
This error shows up in both Script Debugger 3.0.7 and Script Editor 2.0
(v43) on Panther
john
--
"I think love is a snowmobile racing across the arctic tundra which suddenly
flips, pinning you underneath. At night, the ice-weasels come...."
Matt Groening
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.