- Joined
- Jun 1, 2009
- Messages
- 12
- Reaction score
- 0
- Points
- 1
- Location
- Brisbane, Australia
- Your Mac's Specs
- MacBook | iMac | iPhone | iPod | eMac
HI All.
I've just written a small (Very Small) applescript to add a printer for those users we have here in our organisation that have a MacBook. We are primarily PCs so of course our printers are set up that way.
The issue I am having is when I point the line for the printer driver to a network location the script can not find that file, however, when I run the line for a local location it works and installs.
The network location is just a NAS with Everyone set to Full Permission.
IF I run this commend it works like a treat.
Thanks
I've just written a small (Very Small) applescript to add a printer for those users we have here in our organisation that have a MacBook. We are primarily PCs so of course our printers are set up that way.
The issue I am having is when I point the line for the printer driver to a network location the script can not find that file, however, when I run the line for a local location it works and installs.
The network location is just a NAS with Everyone set to Full Permission.
Code:
do shell script "/usr/sbin/lpadmin -p QF_STAFFROOM -E -v lpd://<Server>.<Blah>.<blah>/P2132QF26D513/P2132QF26D513 -P smb://xx.xx.xxx.12/Printers/Dell_5130cdn.gz -D \"QF StaffRoom\""
IF I run this commend it works like a treat.
Code:
do shell script "/usr/sbin/lpadmin -p STAFFROOM -E -v lpd://<Server>.<Blah>.<blah>/P2132QF26D513/P2132QF26D513 -P /resources/Dell_5130cdn.gz -D \"StaffRoom\""
Thanks