Save Pages file as html?
In Word it is very easy to save the file as html. Can you do this with pages 11?
Macbook Pro, Mac OS X (10.6.7)
In Word it is very easy to save the file as html. Can you do this with pages 11?
Macbook Pro, Mac OS X (10.6.7)
No. TextEdit can do it, however.
No. TextEdit can do it, however.
How does textedit do this, now that Lion has no "save as" command? I've tried the new method (duplicate then save) but there are no options I can find for saving in html.
tks,
JS
jgoshawk wrote:
I've tried the new method (duplicate then save) but there are no options I can find for saving in html.
When I do duplicate then save, I get a File Format button which has Web Page (.html) among the options.
For a new document, which has not yet been saved, I get the same thing with Save.
Have you tried Format > Make Rich Text first?
Yup, that's it. RTF first.
Thanks!
JS
You can also export as RTF from Pages, then use the convert utility textutil in the Terminal. Locate the exported file, and type textutil -convert html foo.rtf (where the last argument is the filename you created with the export).
For more info, type man textutil in the Terminal.
Textutil is a useful utility.
For those that do not wish to drop into Terminal, here is a short Automator Folder action. In its present form, dragging one or multiple of the supported input file types onto the designated folder, will convert each into a like-named .html file.
Steps:
I named this folder: file->html
Single-click to enlarge included image for improved clarity
In my example, it is file2html.workflow
I tested this by dragging and dropping three files together on to the folder: .rtf, .doc, and .odt.
All converted into their respective named .html files and were legible in Safari.
I have revised the previously posted folder action that converts supported textutil file formats into .html documents.
The bash shell script now does the following:
Files tested, singularly and in multiples:
Here is the revised automator workflow script:
Errata:
if [[ ${#invalidLen[*]} == 0 ]]; then
should read:
if [[ ${#invalid[*]} -eq 0 ]]; then
Textutil did it's job - thanks so much for walking through these steps. I made a minor error in Automater by selecting the wrong destination file for the operation, but I caught the error and fixed it.
Now to see if I can speed up the Cocoa HTML Writer engine to do conversion on a series of many files 🙂
Save Pages file as html?