[OPLINTECH] Need help from a Mac user

Phil Shirley pshirley at cuyahogafallslibrary.org
Fri Jan 30 15:34:33 EST 2015


Could someone who has a Mac with OS X 10.5, 10.6, 10.7, or 10.8 help me 
with something? In order to create scripts for automatically adding our 
network printers to patrons' Macs so they can print wirelessly here, I 
need someone with a Mac to find a filename, insert it into 2 scripts, 
then compile and compress the scripts and send them to me. There are 
specific instructions below. Thanks for any help you can give me with this.

First of all, on your Mac, find the printer PPD (Driver) filename (in 
/Library/Printers/PPDs/Contents/Resources; it has the extension .gz, 
like Brother HL-5250DN series.gz) for this printer:

HP Color LaserJet CP4525

For both of the attached scripts, could you change "something.gz" to the 
filename you found above for that printer, then save the script in a 
text file as spot.scpt, and then follow this procedure:

1. Open the file "spot.scpt" in the AppleScript Editor
2. Click Compile.
3. Click Save/Save As and enter the name "InstallPrinter".
4. Choose the File Format of Application.
5. Uncheck all boxes except Run Only.
6. Save the file.
7. Find the file in Finder, then right-click it and select Compress 
"InstallPrinter".

Then email the files to me (please use "reply all" so the file goes to 
my gmail account also, in case there's a problem receiving zip files 
here at the library). Thanks!

Phil
-- 
Phil Shirley
Technology Services Coordinator
Cuyahoga Falls Library
Cuyahoga Falls, Ohio
330-928-2117, ext. 109
pshirley at CuyahogaFallsLibrary.org


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
set err to 0
try
do shell script "lpadmin -p CHILDRENSCOLORPRINTER -E -v ipp://192.168.150.1:631/printers/UPSTAIRSCOLORPRINTER -P \"/Library/Printers/PPDs/Contents/Resources/something\""
on error errmsg number errnum
set err to 1
display dialog errmsg
end try
if err=0 then display dialog "The printer CHILDRENSCOLORPRINTER is now ready to use."
-------------- next part --------------
set err to 0
try
do shell script "lpadmin -p UPSTAIRSCOLORPRINTER -E -v ipp://192.168.150.1:631/printers/UPSTAIRSCOLORPRINTER -P \"/Library/Printers/PPDs/Contents/Resources/something\""
on error errmsg number errnum
set err to 1
display dialog errmsg
end try
if err=0 then display dialog "The printer UPSTAIRSCOLORPRINTER is now ready to use."


More information about the OPLINTECH mailing list