home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-04-09 | 766 b | 30 lines | [TEXT/ToyS] |
- -- Set this to the path to your download file that lists the files to fetch
- set theinput to (path to desktop as string) & "download"
-
- set quitanarchie to false
-
- set thedata to read file theinput
-
- copy thedata & return to thedata
- set newdata to ""
- set i to 1
- repeat while i ≤ (the number of paragraphs of thedata)
- set theurl to paragraph i of thedata
- if length of theurl > 0 then
- tell application "Anarchie"
- set quitanarchie to true
- with timeout of 3600 seconds
- set err to fetch url theurl expand with ".,.,"
- set keepit to (err is not 0)
- end timeout
- end tell
- if keepit then
- copy (newdata & (paragraph i of thedata) & return) to newdata
- end if
- end if
- set i to i + 1
- end repeat
-
- set eof file theinput to 0
- write newdata to file theinput
-