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: Change username of print job



Hi,
On Mar 9, 2004, at 9:41 AM, Marc Stibane wrote:

Is it possible to change the username (e.g. in a CUPS filter argv[2]) when printing?

MacOS 9 and Windows use the short name of the user when printing. MacOS X uses the long name. I would like to also use the short name on X. Is this possible?

I'm assuming that you are talking about PostScript printing and are examining the %%For comment in the generated PostScript code.

I see that with LaserWriter 8 on Mac OS 9 we are using the name provided in the Sharing control panel. If the name is a long name (as it was for me), that is the value of the %%For comment. If the name is a short name that is what we use.

We do essentially the same thing on Mac OS X but of course the user name is taken from the account information on the Mac. For most users this is exactly what they want.

Background: Our RIP uses the print jobs username to determine who may edit a job. Our editing app is written in JAVA (and runs under Windows, 9 and X) and uses the user's short name to login into the RIP. But since the names don't match, the X user cannot edit his own jobs.

I would prefer to change the username of the job when printing and not to change our JAVA app to use the long name to login when running on X.

One possibility is that, in the future, we add another DSC comment to the generated PS stream that contains the user short name. Your RIP could look for that comment as an override of the %%For comment and use it as the login name should it be available. For example:

%%For: (David Gelphman)
%APLShortUserName: gelphman

Does this help you any? I'm not sure what else to suggest. If you think this is a reasonable solution, please file an enhancement request.

Comments?
David
_______________________________________________
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: 
 >Change username of print job (From: Marc Stibane <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.