Retrieves the index of a job sent to a Job Resource output connector. This function must be called from an After Process script, and cannot be used in Post-processor scripting.
You can only call the GetJobResourceIndex function once for each job resource. Calling the function a second time will cause a new index to be allocated to the job resource, which will result in confusion as to which index belongs to which job resource.
See also the Job Resource output connector settings, and the script functions
OutputLXFJobResource and
DeleteJobResource.
The variable $pageoutresourceindex will contain the index of the job resource that is currently being created.