• 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: CURL+FTP scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CURL+FTP scripting


  • Subject: Re: CURL+FTP scripting
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 7 May 2009 13:27:47 +0200

Le 7 mai 09 à 13:17, Satyam Satyanarayana a écrit :

Hi,

I am writing a script that will download a folder from FTP.
For that, I am initially looking for what are all files that are available in a folder.
Then recurring through the list of files, I will download it.
My script is as follows: (It doesn't include the download file script. I have yet to write)


set fileList to {}
set fileList to do shell script "curl -l ftp://username:password@ipaddress/foldername "


repeat with fName in fileList
display dialog fName --Expecting file name, but displaying individual characters
end repeat


In the above script, I am trying to display a filename, but it is displaying individual characters only.

Any body knows about it?


In the above, fileList is a piece of text; by default, its individual pieces are characters.
Here, you are interested in the lines of that text; this should do the trick:
repeat with fName in paragraphs of fileList


HTH,
Axel _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Testing a checkbox status in Safari (From: David Marshall <email@hidden>)
 >CURL+FTP scripting (From: Satyam Satyanarayana <email@hidden>)

  • Prev by Date: CURL+FTP scripting
  • Next by Date: Automatic login
  • Previous by thread: CURL+FTP scripting
  • Next by thread: Re: Scripting MSWord
  • Index(es):
    • Date
    • Thread