Printing from Terminal ...

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Printing from Terminal ... 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 ?
rlesperance
 
Posts: 1
Joined: Thu Nov 25, 2021 10:22 pm

Re: Printing from Terminal ... 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
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support