Your best friend for file transfer.

Fetch application logoFetch

Using Applescript and getting a password prompt (3 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 12 years ago by killingtime
  • Latest reply 12 years ago from killingtime
  • killingtime Member

    Hi there,

    I was wondering if anyone knows a way to get a prompt asking for a username and password from a user in AppleScript. I don't mind whether it is done from inside a "tell fetch" or not.


    Posted 12 years ago #

  • Jim Matthews Administrator

    You can use display dialog to ask for a username:

    set dialogResult to display dialog "Please enter a user name:"
    if button returned of dialogResult = "OK" then
    set username to text returned of dialogResult
    end if

    I searched the applescript-users mailing list ( ) and found a reference to a scripting addition that lets you ask for a password. It's found at:

    I haven't tried it myself.


    Jim Matthews
    Fetch Softworks

    Posted 12 years ago #

  • killingtime Member

    Thanks, I found, just incase someone else comes across the same problem, that I was having some problems with that script addition (compaining about syntax errors, I think because password is already a reserved command). Anyway I used askPassword from and that solved it just fine :).

    Thanks again.

    Posted 12 years ago #

Topic closed

This topic has been closed.