Re: Saving web pages in Safari, and ideas on creating persistent searchable web archives
Re: Saving web pages in Safari, and ideas on creating persistent searchable web archives
- Subject: Re: Saving web pages in Safari, and ideas on creating persistent searchable web archives
- From: George Anten <email@hidden>
- Date: Sat, 12 Apr 2003 18:09:32 -0400
"John Delacour" wrote:
>
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
What happens if the page has frames, JavaScript, document.write sort of
stuff? Like this for example:
<
http://developer.apple.com/techpubs/webobjects/Developing_With_D2W/WalkThro
ugh/index.html>
g/a
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.