• 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: "Francois Houle" <email@hidden>
  • Date: Thu, 10 Mar 2005 15:01:46 -0500
  • Thread-topic: About keychain scripting

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
 

Frank



From: Brian [mailto:email@hidden]
Sent: Wednesday, March 09, 2005 7:02 PM
To: Francois Houle
Cc: email@hidden
Subject: Re: About keychain scripting

Hello,

This one work, but I didn't find how to put the new key in another keychain than "login.keychain"

tell application "Keychain Scripting"
make new generic key with properties {account:"account", name:"name", password:"password"}
end tell

Bye,

Brian

Le 9 mars 05, à 21:03, Francois Houle a écrit :

Hi,
I'm just wondering something... When creating a new key in AS for Keychain it should go\
tell application "Keychain Access"
make new key with name "my key name"
end tell
What I want to know is how I'm supposed to format the name that I type in... It states in the Keychain scripting dictionnary that I have to put in things in this format:
name string ...
How should I put in the string ? If I try siomply putting it in quotes it won't accept it It simply states when I try to compile that it expects another parameter but found " If I don't put quotes in, then it states that it found an identifier...
If I set "mykeyname" as string, and put in the string  name this way:
set my_data to "my keyname" as string
and then use my_data:
tell application "Keychain Access"
make new key with name " & my_data & "
end tell
It doesn't work either... Any idea what I'm doing wrong ?
Also would like to know what would be the best way to write the script to put in all they key properties... What would I need to put in to put them all after "make new key" ???
Thanks
Frank
_______________________________________________
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
 _______________________________________________
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: "Michelle Steiner" <email@hidden>
  • Prev by Date: photoshop script move selection to 0,0
  • Next by Date: RE: Strange Script editor behaviour
  • Previous by thread: Re: About keychain scripting
  • Next by thread: RE: About keychain scripting
  • Index(es):
    • Date
    • Thread