• 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
Getting values from keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting values from keychain


  • Subject: Getting values from keychain
  • From: Isaac Ordonez <email@hidden>
  • Date: Thu, 13 May 2004 11:01:02 -0700

Hello all,

I'm trying to get some values from the keychain and enable them to be used through out a script. I figured that doing

on keychain(myvalue)
try
tell application "Keychain Scripting"
tell keychain 1
unlock
set theKey to first key whose name is "Add User Info"
set myvalue to (myvalue of theKey) as string

end tell
end tell
end try
end keychain


property importname : my keychain("password")
property importpass : my keychain("account")
property myServer : my keychain("server")


on clicked theObject
display dialog "Password:" & importpass & " User:" & importname & " Server:" & myServer & ""
end clicked

would be close to right but I keep getting errors. Anyone see what I'm doing wrong?

Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Getting values from keychain
      • From: travis n <email@hidden>
    • Re: Getting values from keychain
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: Aliases in AppleScripts
  • Next by Date: Re: panther weirdness
  • Previous by thread: Re: Number of item in a folder under OS X
  • Next by thread: Re: Getting values from keychain
  • Index(es):
    • Date
    • Thread