• 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: URL Access Scripting with progress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Access Scripting with progress


  • Subject: Re: URL Access Scripting with progress
  • From: Timothy Bates <email@hidden>
  • Date: Mon, 08 May 2006 10:45:19 +0100
  • Thread-topic: URL Access Scripting with progress

Curl rocks: every protocol under the sun, post and get form data...
Basically safari on the command line.


The power is amazing too: want to download a range of files with related
names? Use range variables:

 curl "www.somwhere.com/[01-10].doc" -o "#1.doc"

This will grab 01.doc  02.doc ... 10.doc and save with unique names as
specified. Works with text lists too

 curl "www.somwhere.com/{brian,jane,sally}.doc" -o "#1.doc"

--> brian.doc jane.doc

Learn more at

   man curl


And of course without -o you just get the file contents back into your
script: perfect for tossing at regexp


> Using 'curl' instead made our scripts shorter and the whole thing
> finally more reliable.
>
> Emmanuel


 _______________________________________________
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

References: 
 >Re: URL Access Scripting with progress (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: URL Access Scripting with progress
  • Next by Date: Re: URL Access Scripting with progress
  • Previous by thread: Re: URL Access Scripting with progress
  • Next by thread: Re: URL Access Scripting with progress
  • Index(es):
    • Date
    • Thread