XPress 4.x - append style sheets?

Anyone have any clues on automating appending style sheets from one document to another?

The only way into this seems to be:

select menu item "Append..." of menu "file"

but if XPress is in the background you get nothing, if it’s in the foreground you get a dialogue box (no good).

I’ve tried things like:

select menu item "Append..." of menu "file" from file theFile

But that gets nowhere either.

Thanks in advance for any pointers on this - Prefab Player would be a last resort if that’s the only way.

Hi :slight_smile:

You can go to see on the site of Sal Soghoian.
There is a page entirely devoted to the scripting of QXP.
You will find, in particular for your problem, a collection of scripts for the QXP style sheets.
This page is here: StylSheet Collection

I hope that you will find a solution with your problem… :wink:

Unfortunately Sal’s collection didn’t sort this, but here’s what I did in the end.

For my particular needs I didn’t need any layout info, I was just taking a galley of text and applying a modified set of style sheets (with the same names), to effectively get two files with different styling - one being the “master” and the other the “slave” if you like.

Because this is relatively limited, I made two templates, one with each set of style sheets - both have all the same names for styles, but different actual styles applied.

Once my master galley is finished, I run a script that exports the galley as XPress tags, then imports that text into the “slave” template. Thus I get two sets of identical content with different styles.

I then duplicated the script and modified it to take data from the “slave” file and apply the master styles using the same method (export XPress tags, then import to different template). Just so that I could switch backwards and forwards at will.