Re: Setting password of a keychain key
Re: Setting password of a keychain key
- Subject: Re: Setting password of a keychain key
- From: kai <email@hidden>
- Date: Tue, 28 Mar 2006 21:39:16 +0100
On 28 Mar 2006, at 21:31, Adam Bell wrote:
With Kai's fix, this works for me now even with the line: "set
theKey to (first key....." commented out. What does that line do?
set {text:thePassword} to text returned of (display dialog "Enter new
password" default answer "" with hidden answer) as string
tell application "Keychain Scripting"
tell keychain 1
unlock
-- set theKey to (first key whose name is "Some Key")
set password of (first generic key whose name is "ASPW") to
thePassword
end tell
end tell
Not a lot, Adam. I suspect it's a remnant from some previous
experiment. My own code (not posted) went like this:
----------------------
set {text:thePassword} to text returned of (display dialog ¬
"Enter new password" default answer "" with hidden answer) as string
tell application "Keychain Scripting" to tell keychain 1
unlock
set password of (first key whose name is "someKeyName") to thePassword
end tell
----------------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden