• 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: Newbie Question - Hidden Password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question - Hidden Password


  • Subject: Re: Newbie Question - Hidden Password
  • From: JollyRoger <email@hidden>
  • Date: Fri, 08 Jun 2001 16:51:17 -0500

On 6/8/2001 2:32 PM, "Scott A. Ettin" <email@hidden> wrote:

> Fellow AppleScripters - I'm a newbie to this list and to AppleScript
> in general. I've completed my first script which allows an operator
> to drag any file onto an applet then upload it to our FTP server.
>
> I prompt the user for their login id and password and then a few
> other variable to establish the directory they wish to create.
>
> Is there a way in which I can hide the values being entered into the
> password dialog that are hidden - like *******

Yes. You cannot do it with the standard additions. I would suggest that
you use Dialog Director <http://osaxen.com/?id=dialog_director> to build the
dialog. Here's an example snippet:

-- begin script
set theDialog to {size:[360, 100], contents:[,
{class:push button, bounds:[290, 65, 350, 85], name:"OK", enabled:true},
,
{class:push button, bounds:[210, 65, 270, 85], name:"Quit",
enabled:true}, ,
{class:push button, bounds:[140, 65, 200, 85], name:"Change",
enabled:true}, ,
{class:password field, bounds:[10, 36, 350, 36 + 16], name bounds:,
[10, 10, 350, 26], name:"Enter the password:", value:""}]} --
requires Dialog Director

set theResult to dd auto dialog theDialog with grayscale -- requires Dialog
Director
-- end scripts

HTH

JR


References: 
 >Newbie Question - Hidden Password (From: "Scott A. Ettin" <email@hidden>)

  • Prev by Date: Now Up-to-Date & Contact
  • Next by Date: Re: reference to
  • Previous by thread: Newbie Question - Hidden Password
  • Next by thread: Re: Newbie Question - Hidden Password
  • Index(es):
    • Date
    • Thread