[ad_1]
I have been looking for an novice-level reply to this for an embarrassing very long time. New to Mac, so I am attempting to get my head round a course of for some of these firm broad, one and completed, operations.
We transferring workplaces and including two printers. No print server, simply wifi units. I’ve written a script so as to add the 2 workplace printers. It really works. I want to have the ability to ship that script out to all of my customers in a type the place they’ll simply double click on the file and run the script.
The script works when pasted right into a terminal, simple sufficient. However my consumer base will not be capable of do this with out me having to the touch practically each machine.
Script that works:
lpadmin -p 1_Printer -E -v ipp://x.x.x.x -P ~/AirPrint.ppd
lpadmin -p 2_Printer -E -v ipp://x.x.x.y -P ~/AirPrint.ppd
echo "Printers added efficiently"
However I can not work out the right way to flip it right into a fundamental executable file that I can push to the consumer base. In a earlier life, I might simply save the .bat and make it accessible on transfer in day. I have been going by means of solutions about .sh manipulation, .command recordsdata, and different programming that I haven’t got an excellent deal with on. However I hold hitting a wall the place file permissions and executable standing must be modified domestically or run by means of Terminal. That defeats the aim of constructing it simple and self service.
Am I lacking one thing apparent or in any other case fundamental, or is there a approach I can do that I simply have not discovered?
[ad_2]