Is it possible to make OS X execute a script when document is printed ?
My printer is connected to a power switch which is controlled with a REST API and the idea is to switch the printer on only when it is needed (basically while printing).
Any command (bash, AppleScript) can be used if it can make a call to a rest API (http://10.10.0.1/switchon).