Specifications
to “00001”. Next time, it will evaluate to “00002” and so forth. After the counter reaches “99999”
it circles back to “00000”.
The most recently used value of the counter is retained across multiple invocations of the Switch
server.
Counter: number of digits
The Width argument specifies the number of decimal digits in the number; leading zeroes are
inserted when needed. The default value for width is 5; the minimum value is 1 and the maximum
value is 15. An invalid value is replaced by the nearest valid value.
The internal counter is always 15 digits wide; the Width argument specifies how many of the
right-most digits are actually shown.
Identifying counters
A counter variable refers to a particular physical counter through an identifier (ID). Switch uses
the same physical counter for all counter variables with the same ID, even if these variables are
used in properties of a different flow element or in a different flow (in the same Switch instance).
A physical counter is incremented each time a counter variable with its ID is evaluated, regardless
of where the variable occurred.
A counter variable can explicitly specify an ID or it can rely on the default value.
If the “ID” argument is present and has a non-empty value, this explicitly specifies the ID.
Otherwise a default ID is generated that is unique to the flow element in which the counter is
used. This makes the counter variable “local”.
If a property uses the same counter variable more than once, each invocation of the variable is
deemed a new invocation and will cause the counter to be incremented. For example, assuming
no counters have been used yet in a flow element, the property value
Demo [Switch.Counter] - [Switch.Counter]
evaluates to
Demo 00001 - 00002
16.2 Metadata
Embedded metadata
Switch offers direct access to metadata embedded in a job in the EXIF, IPTC and Adobe XMP
formats, without the need for a separate “pick-up” action. All Switch product flavors provide
read-only access to embedded metadata through variables; PowerSwitch offers read-write access
to embedded metadata through scripting.
Also see "Metadata overview".
Embedded metadata formats
Switch supports the following embedded metadata formats:
311
Enfocus Switch 10