Looking to install windows print queue on Apple OS via Apple script
This is path, with the username/password embedded
smb://domain\\\\userName:Password@server.address.edu/queueName
do shell script "/usr/sbin/lpadmin -p 3rd-floor -v smb://CUA\\\\" & userName & ":" & ThePassword & "@server.address.edu/queueName -P " & quoted form of (POSIX path of driver3) as text & " -D \"3rd-Floor-Library\""
do shell script "sudo /usr/sbin/accept 3rd-floor" with administrator privileges
This sets correct access or right for the printer.
I embedded username/password because I found issues trying to use Applescript to create entries in Keychain.
lpadmin switches
-L "location" Provides a textual location of the destination. -P ppd-file Specifies a PostScript Printer Description file to use with the printer. If specified, this option overrides the -i option (interface script).
-v "device-uri" Sets the device-uri attribute of the printer queue. Use the -v option with the lpinfo(8) command to get a list of supported device URIs and schemes. -D "info" Provides a textual description of the destination.
No comments:
Post a Comment