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

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


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"
reveal file f

Ray Barber
Admin | MacScripter



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)