次のスクリプトを機能させるのに苦労しています。つまり、スクリプトのタイマーを設定して、picture-0001.jpg から picture-xxxx までの継続的なファイル名で www.url.com/picture.aspx の jpg バージョンを HDD に保存したいと考えています。 .jpg。
set {tUrl, dFolder} to {"www.url.com/picture.aspx", "~/Desktop/curlDownload/"}
set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"}
set fName to (last text item of tUrl) as string
set AppleScript's text item delimiters to oAStid
do shell script ("mkdir -p " & dFolder & "; curl -A/--user-agent " & tUrl & " >> " & (dFolder & fName))
ご協力いただきありがとうございます。