Your best friend for file transfer.

Fetch application logoFetch

DropUpload changes (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 10 years ago by iordonez
  • Latest reply 10 years ago from iordonez
  • iordonez Member

    Hi,

    I'm not very good at apple script and I'm trying to make some small changes to DropUpload. Basially all I want is a dialog box to ask for user name and password. The server will be set static and files will be uploaded to users remote home directory. Any Ideas on how this could work?

    Posted 10 years ago #

  • Jim Matthews Administrator

    Here's a DropUpload that asks for a user id. Fetch will prompt the user for a password:

    property gDestHost : "ftp.acme.com"

    on open doc
    set dialog_reply to display dialog "Enter User ID:"
    if button returned of dialog_reply = "OK" then
    set desturl to "ftp://" & (text returned of dialog_reply) & ":@" & gDestHost & "/"
    else
    return
    end if
    with timeout of 60000 seconds
    tell application "Fetch 4.0.3"
    put into url desturl item doc
    end tell
    end timeout
    end open

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • iordonez Member

    You totally rock ;)

    Posted 10 years ago #

Topic closed

This topic has been closed.