Subject: | |
From: | |
Reply To: | |
Date: | Tue, 22 Jul 2008 12:08:33 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I'd recommend just running this in the terminal (cmd-space terminal)
curl 'http://www.server.org/speech?session=[001-100]&item=[001-100]}' -
o '#1_#2.wav'
The applescript would be
set itemRange to "001-002" --leading zeros honoured
set itemNumber to "1-2"
do shell script "curl 'http://www.server.org/speech?session=[" &
itemRange & "]&item=[" & itemRange & "]}' -o '#1_#2.wav'"
--man curl in the terminal for help: this is a MARVELLOUS utilityy
On 22 Jul 2008, at 9:54 AM, Christoph Draxler wrote:
> Hi,
>
> I haven't done any scripting for some time, and now I urgently need
> a script that will download speech audio files from a web page in
> Safari.
>
> The audio files are retrieved dynamically, i.e. the URL is of the
> form www.server.org/speech?session=1000&item=001, and the file
> should be saved in a wave-file as 1000_001.wav in a download folder.
>
> What's the best way to do this?
>
> Many thanks in advance,
>
> Christoph
>
> --------------------------------------------------------------------------------
> Institut für Phonetik und Sprachverarbeitung
> Ludwig-Maximilians-Universität München
> Schellingstr. 3
> D 80799 München
>
> Büro: +49-(0)89-2180 2807
> mobil: +49-(0)152 2258 4157
> Fax: +49-(0)89-2180-5790
> --------------------------------------------------------------------------------
|
|
|