SetStyleTag Style Command

Sets the Next Style and other options of a style tag.

setstyletag ([NEXTSTYLETAG nextstyle] [STYLETAG name])

nextstyle/s The Next Style for a style tag.

STYLETAG/s The name of the style tag to change.

Examples:

setstyletag nextstyle 'Body Text' styletag 'Headline'

 

SetStyleTag  Command Definition  url:PGScmd/setstyletag
  created:2006-03-31 10:52:59   last updated:2006-05-03 11:40:30
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SetStyleTag
Dan Kilroy wrote...2006-05-04 16:47:23

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

SetStyleTag ([NEXTSTYLETAG nexttagname][UNLOCKED | LOCKED] [INTERNAL|DRAWING] [PGS40:NOTOC | TOC] [STYLETAG document:...-tagname])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:

ColorList = GetColors('names')['names']
for color in ColorList:
print SetStyleTag('StyleTag', ':Subchapter~' + color, 'UNLOCKED')
print DeleteStyleTag('StyleTag', ':Subchapter~' + color, 'ReplaceWith', color)

If you have a subchapter that is duplicating the document colors you can manually delete the duplicates in the ''Define Colors'' dialog, except for White and Black which are locked. If the subchapter in question is named Subchapter the above script will get the color list, force the color to be unlocked and remove it.

This works, but apparently PageStream will remove the root level color of the name if the specified color does not exist. Just run the script twice and check via the ''Define Colors'' dialog to see what has happened.

ARexx:


Applescript:

User Contributed Comments For SetStyleTag