Your best friend for file transfer.Fetch
DropUpload changes (3 posts)
- Started 10 years ago by iordonez
- Latest reply 10 years ago from iordonez
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?
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 & "/"
with timeout of 60000 seconds
tell application "Fetch 4.0.3"
put into url desturl item doc
You totally rock ;)
- Page 1
This topic has been closed.