Using the job name from StartJob and EndJob hooks
This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP.
In StartJob you can get at the file name for the job if you want, using an extension, the filename operator in statusdict. The job file is in serverdict, called stdin, so you can use this code fragment:
serverdict /stdin get 250 string statusdict /filename get exec
This fragment leaves a boolean and substring on the stack.
You can also do other things with the file, such as:
- Gather statistical information.
- Transmit information to a remote server.
- Write a copy of the file to disk.
- Replace
stdinwith some other process that deals withstdinin another way.