Page 1 of 1

Printing from Terminal ...

PostPosted: Thu Nov 25, 2021 10:36 pm
by rlesperance
Hello,

With the help of Hazel, I want to set a folder to print using existing print options when a document is added to it. Print options are only available from a Terminal command line script and I don't know how to write the script.

I simply want that the added file to print to a specified printer with existing OS X (Big Sur) pre-set options.

My printer's name is «HP_OfficeJet_Pro_8740» and the preset option's name is «Black and white»

Can you please help me with that script ?

Re: Printing from Terminal ...

PostPosted: Fri Nov 26, 2021 11:24 am
by Mr_Noodle
You might be better off checking a shell scripting resource on how to do this as it's not particularly Hazel-specific. Here's something that comes up in a quick search: https://superuser.com/questions/229418/ ... c-terminal