• 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: ftp transfer using apple script!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: ftp transfer using apple script!
  • Next by Date: script inside application package
  • Previous by thread: Re: ftp transfer using apple script (using URL Access)
  • Next by thread: script inside application package
  • Index(es):
    • Date
    • Thread