Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Using LPADMIN on OSX installing HP printer driver with space between driver's name
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cibsrpsych" data-source="post: 1686911" data-attributes="member: 54338"><p>Hi All,</p><p></p><p>Using Apple Automator I'm trying to install HP IP printer via Lpadmin using the following code:</p><p>/////////////////</p><p>tell application "Terminal"</p><p> activate</p><p> 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</p><p>end tell</p><p></p><p>///////////////////</p><p></p><p>The code does not run due to have spaces between driver's name"HP LaserJet P4010_P4510 Series.gz"</p><p>So I added "\" to avoid the error "HP\ LaserJet\ P4010_P4510\ Series.gz" , but still getting error "Unknown argument "LaserJet"</p><p></p><p>Any advise?</p><p></p><p>Thanks in advance,</p><p></p><p>Abi</p></blockquote><p></p>
[QUOTE="cibsrpsych, post: 1686911, member: 54338"] 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 [/QUOTE]
Verification
Post reply
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Using LPADMIN on OSX installing HP printer driver with space between driver's name
Top