Hi
i want a way to convert htm files to webarchive, but WITH pictures!
what i tried so far:
set targ_pt to (path to sites folder)
tell application "Finder" to set sel to the selection
repeat with i in sel
set openy to false
tell application "Finder" to if class of i is not folder then
open i
set openy to true
end if
if openy is true then
tell application "Safari"
activate
tell application "System Events"
keystroke "s" using command down
keystroke return
end tell
--set nm to name of document 1
-- save document 1 in (targ_pt as text) --as (nm & ".webarchive" as text)
end tell
end if
--wait until the page are loadet
delay 1
end repeat
i’m really unhappy with this script.