I want to automate printer installation with a variable. I've used an old script that pops up a window where the user can type his or her username to be inserted in printer adress.
name="$(osascript -e 'Tell application "System Events" to display dialog "Skriv in ditt användarnamn:" default...
You can reset CUPS by doing the following:
Reset Printing System in OS X Lion and OS X Mountain Lion
Launch System Preferences by selecting it from the Apple menu, or by clicking its icon in the Dock.
Select the Print & Scan preference pane.
Right-click in a blank area of the printer list...