Running a Script in Print Rules
You can specify a command that executes when a print rule is run using the substitution
values shown in the
Print rules substitution variablestable.
Print rules substitution variables
Substitution variable | Meaning |
---|---|
%i | The name of the input file. |
%o | The name of the file in which to store the output. |
%j | The name of the original print file, minus the path (from the document-file-name attribute).
Note: This should only be used to construct another name, such as a temporary file.
|
%n | The name of the original print file, minus the path and minus the extension (from
the document-file-name attribute).
Note: This should only be used to construct another name, such as a temporary file.
|
%d | A text string that represents the document format of the input file.
Note: You can also acquire document format through the %%Ddocument-format substitution value.
|
%p | The value of the document's destination-pass-through attribute. |
%s | The document-sequence-number for the document. |
%t | The value of the document's other-transform-options attribute. |
%g | The global job identifier for the job. |
%# | The job-identifier (10 digits maximum). |
%%Ddoc_attribute%% | The value of the InfoPrint Manager document attribute specified. For example, if you use %%Ddepartment-text%% , InfoPrint Manager passes the document's department-text attribute value.
Note: See the "Considerations when using the %%Nattributename substitution control sequences" topic under the "Usage guidelines" for the other-transform-options attribute for transforms in the RICOH InfoPrint Manager: Reference before using this substitution variable.
|
%%Jjob_attribute%% | The value of the InfoPrint Manager job attribute specified. For example, if you use %%Jjob-owner%% , InfoPrint Managerpasses the job-owner attribute value of the job that owns the document.
Note: See the "Considerations when using the %%Nattributename substitution control sequences" topic under the "Usage guidelines" for the other-transform-options attribute for transforms in the RICOH InfoPrint Manager: Reference before using this substitution variable.
|
- Note:
- Each substitution variable must be passed as a single parameter to the script. You must not concatenate substitution variables with one another or with any other text.
- If you are specifying any substitutions for which the passed values might contain a blank space, such as
job name
, be sure to put quotes around the substitution so it is passed correctly. Note that this only applies to single%
substitution variables. Do not put quotes around any%%
substitution variables.