12-26-2014, 06:59 AM
Macro Macro20
;allow single instance
if(getopt(nthreads)>1) end "The thread is already running. You can end it in the 'Running items' pane."
;Add up to 87 links as you like.
str s=
;link 1
;link 2
;link 3
str line sf sd ;;variables
foreach line s
,rep 60
,,IntGetFile line
,,err 10; continue ;;if error, retry after 10 s
,,downloaded=1
,,break
,if(!downloaded) end "failed to download"
;format filename and save to file
,sf.timeformat("$my qm$\Image-{yyyy-MM-dd}.jpg")
,sd.setfile(sf)