Re: URL Access Scripting
Re: URL Access Scripting
- Subject: Re: URL Access Scripting
- From: "Daniel A. Shockley" <email@hidden>
- Date: Sun, 2 Mar 2003 18:53:52 -0500
Good news, Gary!
curl can not only replace URL Access Scripting for everything it
does, but it does it faster, and with more options. curl can download
using a wildcard syntax that you'll have to read about in the man
page, but the part you'll love is:
------------
You can specify multiple URLs or parts of URLs by writing
part sets within braces as in:
http://site.{one,two,three}.com
or you can get sequences of alphanumeric series by using
[ ] as in:
ftp://ftp.numericals.com/file[1-100].txt
ftp://ftp.numericals.com/file[001-100].txt (with lead-
ing zeros)
ftp://ftp.letters.com/file[a-z].txt
------------
Alternatively, the man page mentions that you can give it a list of
URLs to download in one batch.
So, for your example, you should be able to do:
set downloadPath to "MY MAC NAME:Desktop Folder:text files:" as string
do shell script "curl
'
ftp://username:email@hidden/downloads/testfile[1-3].txt'
--output " & quoted form of Posix Path of downloadPath &
"testfile#1.txt"
That should work, although I haven't tested it in detail.
garybi <email@hidden> wrote:
l've got a little problem trying to get muliple files download using URL
Access Scripting.
...
l know you can download a folder with URL Access but l only need a few
files each time and do not want to download everything in the dir and
also the biggie is that l do not want to use an ftp client like fetch
because l'd like to run the script without using any 3rd party software.
l've been trying to use wild cards like you can on the command line ftp
but l can not get this to work.. ;-(
Can anyone help?
Regards, Gary.
--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.