Saving Safari documents as html?
Saving Safari documents as html?
- Subject: Saving Safari documents as html?
- From: David Duncan <email@hidden>
- Date: Thu, 5 Jan 2006 15:23:13 +1100
Within a script I'm trying to save web pages in Safari using the save
statement from Safari's standard suite. I want to save as html
source ("TEXT" filetype), which is what you get when you choose the
"Page Source" option in Save As in Safari's file menu (such saved
file names have the ".html" suffix).
However, with these lines…
save window 1 as "TEXT" in outputFile --outputFile contains the
path and file name
OR save window 1 in outputFile
… I get a ".download" suffix attached to the file name and the file
type is literally blank, null. The files contain images and not just
html source. It doesn't seem to make any difference what you specify
as the file type.
The Safari dictionary reference is not particularly revealing, as
follows:
save: Save an object.
save reference -- the object for the command
[as Unicode text] -- The file type in which to save the data.
[in alias] -- The file in which to save the object.
Is it actually possible to script Safari to save a document as html
or text only?
David Duncan _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden