Friday, July 20, 2018

#1 2003-04-13 10:50:46 am

Ray Barber
Site Admin
From:: Lake Dallas, Texas
Registered: 2002-11-20
Posts: 348
Website

Safari Save

This script will save a page in Safari to a particular folder location in HTML format. From the AppleScript Users list.

OS version: OS X

Applescript:

set d to "1/1"
set f to paragraph 2 of "
"
& (path to "cusr")&"Safari_" & ((current date)-(get date d)) &".html"
set my text item delimiters to {"http://"}
tell app "Safari" to set s to source of front document
open for access file f with write permission
write "" & s to file f
close access file f
tell app "Finder"
activate
reveal file f
end


Ray Barber
Admin | MacScripter

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)