Re: applescript-users digest, Vol 3 #1696 - 17 msgs
Re: applescript-users digest, Vol 3 #1696 - 17 msgs
- Subject: Re: applescript-users digest, Vol 3 #1696 - 17 msgs
- From: Tom Robinson <email@hidden>
- Date: Thu, 29 May 2003 08:45:48 +1200
>
>> curl http://www.client.net/db/images/[1-5000].eps -o
>
>> "/Users/test/Desktop/Img_saves/#1.eps"
>
>
>
> Don't wish to be picky, but that should be [0001-5000].
>
>
Man page says:
...
>
So I assumed leaving out leading zeros and quotes were OK, no?
Sure, curl will accept either [1-5000] or [0001-5000]. The first will generate a URL and filename of 1.eps, 2.eps, etc, whereas the second will generate 0001.eps, 0002.eps, etc--which is what the original question specified.
If you're calling curl from the tcsh shell (don't know about the others offhand) you have to quote the URL if it contains 'globbing' characters--square brackets, curly braces, etc. This prevents the shell from interpreting them and instead passes them straight to curl.
Cheers
--
Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur ad necem.
(In the good old days, children like you were left to perish on windswept crags.)
_______________________________________________
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.