@PTRDRIVER — Returns the driver name for the specified printer.

Syntax:
%@PTRDRIVER[printername]

printername: if omitted, the user’s default printer

The function will return ??? on any error.

echo %@ptrdriver["LaserJet in Office"]