• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: About keychain scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: About keychain scripting
      • From: "francois.houle" <email@hidden>
References: 
 >RE: About keychain scripting (From: "Francois Houle" <email@hidden>)

  • Prev by Date: date calculations
  • Next by Date: Re: date calculations
  • Previous by thread: RE: About keychain scripting
  • Next by thread: Re: About keychain scripting
  • Index(es):
    • Date
    • Thread