Selective tray changes

The ChangeBins tool can also be used to change tray settings using command line parameters. These parameters allow a more detailed configuration of the sections that will be affected.

The /Section parameter

The ChangeBins and ChangeBinsW programs can be called with zero, one or more /Section options. If the ChangeBins script command is used the /Section options can be provided through the Overrides parameter

Each one of these options has the following format:

/Section <section>:<first page>[,<other pages>]

where:

section Number of the section to which the changes apply.
The section number should either be the number of the section, or * to affect all sections in the document.
It is allowed to have both a /Section *:... and specific /Section parameters. In this case the specific settings have priority over the general ‘*’ setting.

first page Specification for the paper tray of the first page of the section.
The following specifications are supported:

- No change

n Set the paper tray to tray n.

?n Look up paper tray n in the configuration file and set it to the equivalent paper tray for the new printer.

! Take the paper tray from the document and set it to the equivalent paper tray for the new printer.

other pages Specification for the paper tray of the other pages of the section.
The format is identical to the first page parameter.
If this parameter is omitted the first page parameter is applied to all pages in the section.

If the /Section option is used to apply fixed paper tray numbers the original printer and new printer parameters of the ChangeBins and ChangeBinsW programs can be omitted. If the specification indicates a mapping and no original printer and new printer are specified the paper tray is set to auto select.

Examples

The following examples change the paper trays of document "test.doc" from printer "old" to printer "new". Examples are shown for both the ChangeBins.exe program and the ChangeBins script command. Examples for ChangeBinsW.exe have been omitted since these are identical to those of the ChangeBins.exe program.

Classical behaviour
ChangeBins "test.doc" "old" "new"
ChangeBins
Document ("test.doc")
From ("old")
To ("new");

or explicitly:

ChangeBins /Section *:! "test.doc" "old" "new"
ChangeBins
Document ("test.doc")
From ("old")
To ("new")
Overrides ("/Section *:!");

Take the paper tray settings for every section from the document and map them using the configuration file.

Change all sections to a single bin
ChangeBins /Section *:4 "test.doc"
Sets all sections to use paper tray 4.
ChangeBins /Section *:?4 "test.doc" "old" "new"

Maps paper tray 4 on printer "old" to the equivalent bin on printer "new" and sets all paper trays in the document to this paper tray.

Change the first page of the document
ChangeBins /Section 1:3,- /Section *:- "test.doc"

Changes the first page of the first section to paper tray 3 and leaves all other pages unmodified.

ChangeBins /Section 1:3,2 /Section *:2 "test.doc"

Changes the first page of first section to paper tray 3 and all other pages in the document to paper tray 2.

Override a specific section in the document
ChangeBins /Section 1:3,?2 /Section *:?2 "test.doc" "old" "new"

Changes the first page of the first section to paper tray 3 and all other pages in the document to the printer "new" equivalent of printer "old"’s paper tray 2.

Change a specific section in the document
ChangeBins /Section 4:3,2 /Section *:- "test.doc"

Changes the first page of section 4 to paper tray 3 and other pages in this section to paper tray 2. Other sections of the document are not modified.

ChangeBins /Section 4:3,2 "test.doc" "old" "new"

Changes the first page of section 4 to paper tray 3 and other pages in this section to paper tray 2. Other sections of the document are not modified.

Mix and match options
ChangeBins /Section 1:300,! /Section 5:?2,- /Section *:3 "test.doc" "old" "new"
ChangeBins
Document ("test.doc")
From ("old")
To ("new")
Overrides ("/Section 1:300,! /Section 5:?2,- /Section *:3");

This performs the following changes: