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: John Delacour <email@hidden>
- Date: Sat, 12 Apr 2003 22:48:40 +0100
- Mac-eudora-version: 6.0a15
At 4:50 pm -0400 12/4/03, Jeff Porten wrote:
What's the syntax to tell Safari to save a web page with a
particular name, at a particular Finder location, in HTML format?
Have tried several different syntaxes with no luck.
Try this
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
Complicated question:
My goal here is to try to formalize my web surfing; I surf for about
2 hours a day to keep my skills up, and I'd like to start archiving
"might be useful" pages so I can full-text search them in the
future. Ideally this would be with a one-click button; best
workaround seems to be a script in Script Menu. The theory being
that this would all go to a set folder, which could then be searched
using the Finder content search engine.
Get an iKey shortcut to run the above script ?
_______________________________________________
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.