Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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)

Posted on Jul 10, 2012 6:36 AM

Reply
Question marked as Best reply

Posted on Jul 10, 2012 7:07 AM

No. TextEdit can do it, however.

12 replies

Dec 29, 2012 9:49 AM in response to eberkers

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:


  1. Create an arbitrary named folder on your Desktop. It can be elsewhere.

    I named this folder: file->html

  2. Launch /Applications/Automator
    1. Select Folder Action and Choose.
    2. Select Actions > Utilities > Run Shell Script
    3. Drag and drop the Run Shell Script action into the larger workflow panel.
    4. Duplicate the content and settings from the following image in your action.

      Single-click to enlarge included image for improved clarity

    5. Save as file2html and exit Automator.
  3. Locate your folder that you want to apply this action too.
    1. Select the folder from step 1 with the right mouse button.
    2. At the bottom of the menu, select Folder Actions Setup...
      1. At the bottom of the list of actions, choose the action.workflow that you just saved from Automator.

        In my example, it is file2html.workflow

      2. Check the following:
        1. Enable Folder Actions
        2. Actions
        3. Your folder action name
        4. In the right panel, check On for your action
      3. Quit Folder Actions
  4. Drag and drop file(s) onto the folder from step 1 to convert to html.
  5. Open with web browsert to verify.


User uploaded file


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.

Dec 31, 2012 12:06 AM in response to VikingOSX

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:


  1. Compares dragged and dropped files against supported textutil file types for HTML conversion
  2. Converts valid files to HTML within the folder
  3. Invokes an AppleScript alert dialog from the bash shell that lists the invalid files encountered.


Files tested, singularly and in multiples:


  1. Plain text - *.txt
  2. MS Word 2003 (WordML) - *.xml
  3. Revisable Text Format - *.rtf
  4. MS Word - .doc
  5. MS Word - .docx
  6. OpenOffice/LibreOffice Writer - *.odt


Here is the revised automator workflow script:


User uploaded file

Save Pages file as html?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.