Re: CURL+FTP scripting
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