• 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: Brian <email@hidden>
  • Date: Thu, 10 Mar 2005 01:02:08 +0100

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

References: 
 >About keychain scripting (From: "Francois Houle" <email@hidden>)

  • Prev by Date: Re: Select Similar in PhotoShop
  • Next by Date: Re: Hiding ScriptingAdditions.osax
  • Previous by thread: About keychain scripting
  • Next by thread: RE: About keychain scripting
  • Index(es):
    • Date
    • Thread