Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set printer to be default if variable is set
- osascript<<END
- set pickPrinterName to "$printername"
- tell application "Printer Setup Utility"
- set matchingPrinters to every printer whose name is pickPrinterName
- set current printer to (item 1 of matchingPrinters)
- end tell
- END
Add Comment
Please, Sign In to add comment