• 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: Keychain Scripting (Was Re: Keeping a volume Mounted)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain Scripting (Was Re: Keeping a volume Mounted)


  • Subject: Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
  • From: Bryan <email@hidden>
  • Date: Sat, 10 Feb 2001 15:16:40 -0500
  • Organization: Apex Radiology

You can create a non-viewable password at compile time without having to
save the script as a run only; just use a property to store the password.
If the script is opened in an editor, the property is erased. The nice thing

about this is, it can be reused without rewriting as well. It is also
portable.

Bryan Kaufman


Like this:

property mypassword : (text returned of ,
(display dialog "Enter Password" default answer "password"))
tell application "Keychain Scripting"
unlock keychain "some keychain" with password (my mypassword)
quit
end tell

(the ',' is supposed to be the option-L character)


Rob Jorgensen wrote:

> On 2/10/01, Michelle Steiner commented on "Re: Keychain Scripting
> (Was Re: Keeping a volume Mounte":
>
> >On 2/10/01 9:37 AM, Rob Jorgensen <email@hidden> wrote:
> >
> >>>Did you save it as a compiled script or as an applet? It sounds to me
> >>>like you saved it as a script.
> >>
> >>I've saved it in every format available. If it is saved as run-only,
> >>it doesn't work.
> >
> >I tried it, and got that error only when saved as a run-only script (but
> >only when double-clicking the script; running it from within another
> >application--Claris Emailer--worked OK).
>
> I haven't tried running the script from another application...only by
> double-clicking it. I don't know why double-clicking the script to
> run it would affect its execution in this case.
>
> >Saving it as a run-only applet worked fine.
>
> Hmmm. Must be something unique to my setup then. Like I said before,
> it's no biggie 'cause I don't really need the script. I guess I'll
> just let it die a quick death and move on to something more useful.
> ;-)
>
> Thanks for your feedback.
>
> Later,
>
> Rob Jorgensen
> Ohio, USA
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


References: 
 >Re: Keychain Scripting (Was Re: Keeping a volume Mounted) (From: Michelle Steiner <email@hidden>)
 >Re: Keychain Scripting (Was Re: Keeping a volume Mounted) (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
  • Next by Date: Re: Arguable vs. Defendable
  • Previous by thread: Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
  • Next by thread: Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
  • Index(es):
    • Date
    • Thread