Export for XPress






This AppleWorks add-on converts the text in the front AppleWorks document to a text file with tags for Quark XPress.



This is one of 40 scripts in the Enhancement Pack for AppleWorks.


The “Export for XPress” item is in the Word Processing sub-menu of AppleWorks Scripts Menu. To use it:
    1. Open or create a word processing document.
    2. Select the “Export for XPress” menu item.
    3. When prompted by the standard Save As dialog, give the exported file a name and location.

To use the exported XPress tag file in a Quark XPress document:
    1. Position the text cursor in a text box.
    2. In the File menu, select “Get Text”.
    3. Select the exported XPTag file.

This version exports:
    1. Paragraph style names
    2. Paragraph labels. AppleWorks numeric, Roman, Legal and other paragraph labels are converted to actual text for display in XPress.
    3. Bold and italic text styles.
    4. Only one text color (RGB% = 40,0,80).

To export the contents of an AppleWorks text frame, copy and paste it into a temporary word processing document, then run the script.

This version does not tag the following:
    1. Underline, outline or any text style except italic and bold.
    2. Character user style names. Character styles are not exported since AppleWorks 6 (unlike AppleWorks 5) does not provide AppleScript access.
    3. Definitions of user styles. You need to have already defined the same style names in the XPress document. This is actually handy since you can set up the XPress template with more properties (eg leading paragraph height, drop caps) than can be defined in AppleWorks.

If a paragraph has a paragraph level (which you adjust by selecting “Move Right” in the Outline menu) greater than 1, then the level is appended to the style name when exported. For instance, if a paragraph uses the style “Body” and has a paragraph level of 3, it is exported with the paragraph style tag “Body3”.

If your AppleWorks and XPress documents don’t have exact matching style names (eg AppleWorks’ “Body3” needs to map to your XPress document’s “Subpoint” style, then you need to open the created XPTag file and replace any occurrence (eg find “@Body3:”, replace with “@Subpoint:”. AppleWorks and SimpleText can do search and replace of all occurrences in one go.

An upcoming version of this script will allow mapping of different style names and export more properties. Let us know what’s most important to you.

Operates on the text body of the active word processing document.

This script works with AppleWorks 6. It works with AppleWorks 5 but AppleWorks incorrectly returns style names in the form “Untitled n”.

Only registered users are permitted to use the supplied files after 14 days.

This script is included in the Enhancement Pack for AppleWorks, not supplied separately.

This script is read only. Some of the main statements are:

set styleName to paragraph style of paragraphRef
set paragraphLevel to level of paragraphRef
set uniformStyles to uniform styles of paragraphRef
set offStyles to off styles of uniformStyles
set onStyles to on styles of uniformStyles
set containsBold to offStyles does not contain bold and onStyles does not contain bold
set containsItalic to offStyles does not contain italic and onStyles does not contain italic

Please email us any queries about this page.