Re: ftp transfer using apple script!
Re: ftp transfer using apple script!
- Subject: Re: ftp transfer using apple script!
- From: Michelle Steiner <email@hidden>
- Date: Tue, 19 Jun 2001 07:24:51 -0700
On 6/19/01 7:10 AM, g_vkatta <email@hidden> wrote:
>
can any one help me with the script that tells "Fetch"(used for FTP
>
transfer) to
>
transfer the files,"Fetch" should by default take the username and password
>
and should transfer the files from the path mentioned to the destination
>
path!
property FileName : ""
property Desturl : ""
property theFile : {}
if theFile is {} then set theFile to {} & ,
(choose file with prompt "Please choose the file to upload." of type
{"JPEG"})
if gDesturl is "" then specify_destination()
on idle
with timeout of (10 * minutes) seconds
tell application "Fetch 4.0"
put into url Desturl item theFile binary format Raw Data
end tell
end timeout
return 1 * hours
end idle
on specify_destination()
set dialog_reply to display dialog "Enter Destination URL in format:" &
return & ,
"
ftp://user:password@host/path/" default answer Desturl
if button returned of dialog_reply = "OK" then
set Desturl to text returned of dialog_reply
end if
end specify_destination
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------