- Joined
- Apr 25, 2008
- Messages
- 6
- Reaction score
- 0
- Points
- 1
Hi All,
Using Apple Automator I'm trying to install HP IP printer via Lpadmin using the following code:
/////////////////
tell application "Terminal"
activate
do script "/usr/sbin/lpadmin -p BEHMEDLJ4015 -E -v lpd://192.168.1.1/ -m /Library/Printers/PPDs/Contents/Resources/HP LaserJet P4010_P4510 Series.gz -L \"BEHMEDLJ4015 \" " in front window
end tell
///////////////////
The code does not run due to have spaces between driver's name"HP LaserJet P4010_P4510 Series.gz"
So I added "\" to avoid the error "HP\ LaserJet\ P4010_P4510\ Series.gz" , but still getting error "Unknown argument "LaserJet"
Any advise?
Thanks in advance,
Abi
Using Apple Automator I'm trying to install HP IP printer via Lpadmin using the following code:
/////////////////
tell application "Terminal"
activate
do script "/usr/sbin/lpadmin -p BEHMEDLJ4015 -E -v lpd://192.168.1.1/ -m /Library/Printers/PPDs/Contents/Resources/HP LaserJet P4010_P4510 Series.gz -L \"BEHMEDLJ4015 \" " in front window
end tell
///////////////////
The code does not run due to have spaces between driver's name"HP LaserJet P4010_P4510 Series.gz"
So I added "\" to avoid the error "HP\ LaserJet\ P4010_P4510\ Series.gz" , but still getting error "Unknown argument "LaserJet"
Any advise?
Thanks in advance,
Abi