how to tell safari
to OPEN AN HTML PAGE in a FOLDER ON MY DESKTOP
SAVE the page AS WEBARCHIVE
CLOSE IT
REPEAT THE PROCESS
for EVERYr html files
from the folder of choice?
The textutils command
do shell script "/usr/bin/textutil -format html -convert webarchive -output " & quoted form of POSIX path of webarchivePath & space & quoted form of POSIX path of aFilePath
does not keep two lines of javascriptcode within the html code
while manually SAVE AS the page opened ib Safari returns a webarchive with everything including images, external links and JavaScript retention
thanks
Browser: Safari 537.36
Operating System: Mac OS X (10.10)