RE: About keychain scripting
RE: About keychain scripting
- Subject: RE: About keychain scripting
- From: "Michelle Steiner" <email@hidden>
- Date: Thu, 10 Mar 2005 21:59:55 -0000 (GMT)
- Importance: Normal
On Thu, March 10, 2005 8:01 pm, Francois Houle said:
> Another question that in a way foolows the last one... If I want to set it
> so that it chekcs to see if the key exists first and if it does skip the
> key creation... how woudl I do it ? I can get as far as this: but am
> missing the "skip key creating part if key exists"
>
> tell application "Keychain Scripting"
> if key {name:"keyname"} exists then "skip key creating part"
> else
> make new internet key with properties {account:"account", name:"name",
> password:"password"}
> end tell
tell application "Keychain Scripting"
if not (key "keyname" exists) then
make new Internet key with properties {account:"account", name:"name",
password:"password"}
end if
end tell
_______________________________________________
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