Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IP Address of a network printer ?



Hello,

This never appeared on the list, so I am reposting it. Sorry if you have already seen it.

It seems that I had the information I needed to get Tioga queue address information all along, but didn't use it properly. I included the reply to my original posting, authored by Paul Danbold, that described a solution to my problem.

To elaborate on Paul's reply, the individual device entries that would have been in the com.apple.printing.plist are now embedded in the individual parsed PPD files in /etc/cups/ppd/. You still need to parse the PPD file to extract the embedded plist, and process it to extract the information from it. If you are a CocoaHead, I recommend the "NSPropertyListSerialization" class.

Sorry for the misunderstanding, Paul! The info was right under my nose the whole time! :-)

Smith


Begin forwarded message:

From: Paul Danbold <email@hidden>
Date: Mon Jun 9, 2003 1:26:07 PM US/Mountain
To: email@hidden
Subject: Re: Printer "address info", revisited

Smith,

You can extract some information from the auto-generated PPD files for Tioga drivers, for example, the IOM URL. But the printer address, for example, usb://<mfg>/<product>?<sn>, is not directly available. We do have plans to return a useful printer address from PMPrinterGetDeviceURI, instead of file://dev/null, but that will have to wait for a future release.

-Paul


On Monday, June 9, 2003, at 10:22 AM, Smith Kennedy wrote:

Hello,

I am trying to find a way to get addressing info for queues using Tioga drivers on CUPS-based Mac OS X systems (10.2 and later).

On Mac OS 10.1, there was really no good set of APIs in the Print Manager, but there was a file "/var/spool/printing/com.apple.printing.plist" that contained the addressing info. On CUPS systems, more APIs were added to the Print Manager, and also the CUPS APIs could be used as well. However, if the queue uses a Tioga driver (Print Module, I/O Module) rather than a CUPS driver and backend, some of the queue information, like the device URI, is useless. But the file I mentioned above that existed on Mac OS 10.1 systems doesn't seem to exist when Tioga queues are created in Mac OS 10.2. Where can that information be found now?

Thanks for any help,
Smith
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: IP Address of a network printer ? (From: Smith Kennedy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.