Automate daily saving of webarchive? Is it possible to automate the saving of a webpage (using the .webarchive format) using either Automator (in a background process) or using Terminal?
Yes is the simple answer with either. 

I am on my iPad at the mo. But you can use unix command curl to download the webpage to and pipe it to the unix command textutil which can output it to a webarchive file.

If I get a chance I will post an example.



Here is a small example (quick ) of what I was thinking. Written in Applescript running do shell script commands.

  property agent : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"

property outPutFormat : "rtf"
property saveDIR : "/Users/USERNAME/Desktop/"
property fileName : "test2"

set theData to do shell script "curl " &amp; " -A" &amp; space &amp; quoted form of agent &amp; space &amp; "http://weather.yahoo.com/france/auvergne/france-29332634/" as string


do shell script "echo " &amp; quoted form of theData &amp; "|textutil -format html -convert" &amp; space &amp; outPutFormat &amp; space &amp; "-stdin -output " &amp; space &amp; saveDIR &amp; fileName &amp; "." &amp; outPutFormat


Although this works. I am not very happy with the results. This is due to curl and textutil only processing the html code but not resources.

So am working on something else that will save a webArchive in a much better way. 90% there but will take a little longer for me to write