• 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
FTP Upload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FTP Upload


  • Subject: FTP Upload
  • From: Alexander Thiel <email@hidden>
  • Date: Sat, 28 Jan 2006 11:44:30 +0100

Hi everyone,

I try to do a folder action, which uploads every file to a ftp-server, even if the files are in nested folders, after upload the files should be deleted. I did several tests with "URL Access Scripting", and with "curl" but I wasn't succesfull :( 

Could you give me hint, how I could handle this?

Alex

set ftp_path to ""
set ftp_name to "username"
set ftp_pw to "password"
set ftp_server to "ftp.dummy.com"

set ftp_connection to "ftp:///" & ftp_name & ":" & ftp_pw & "@" & ftp_server & ftp_path

on adding folder items to this_folder after receiving these_files


tell application "URL Access Scripting"
try
repeat with i from 1 to number of items in these_files
set this_file to item i of these_files
upload this_file to ftp_connection


--do shell script "curl -t " & this_item & "'ftp_connection'"
end repeat
end try
end tell


tell application "Finder"
set the target_file to (delete this_file)
-- PROCESS THE ITEM
process_item(target_file)
end tell


end adding folder items to


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: FTP Upload
      • From: Björn Lundin <email@hidden>
    • Re: FTP Upload
      • From: Jay Louvion <email@hidden>
  • Prev by Date: Re: [Fwd: NDN: Re: ScriptEditor crash while setting an object name in an AppleWork Vectoria]
  • Next by Date: Re: FTP Upload
  • Previous by thread: Re: Tell Statement Problem
  • Next by thread: Re: FTP Upload
  • Index(es):
    • Date
    • Thread