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: launch application from print



Thank you for the input. Basically, I want to do some image processing on the print contents - sharpen, scale, etc, then display it. The rough idea is - ApplicationX is installed on a system, and installs some thing (I don't know what this is - a printer module possibly) such that ApplicationX is available as a printer (locally only, possible?)
Then when the user prints from any application on that system, they can select ApplicationX as the printer. Printing via ApplicationX printer would launch my application, somehow hand it the print contents, which would then image process the contents and display it. I apologize if this is completely off the mark for a printer, I am treading in unfamiliar territory...
thanks again,
Kris


On May 24, 2005, at 4:21 PM, Dave Camp wrote:

On May 24, 2005, at 12:07 PM, Kristine Larson wrote:

I am trying to determine the feasibility of the following:

- user prints from any application and selects my printer
- printing launches my application, which displays the content being printed (nothing is actually "printed")


I am trying to gather together information as to whether this is possible, how difficult, etc.
I would appreciate any advice as to where to start researching this - I have read Introduction to the Mac OSX Printing System. There seems to be a number of documents on printing... I am sure I will eventually read the majority of them... but would like to narrow down the field for this initial estimate. Should I be looking at the CUPs / custom backend stuff, a printer module, a ppd file...
all help appreciated,
thanks,
Kris

There are a number of technical hurdles you will have to overcome:

- The printing system typically runs filters as user "lp", not the current user.
- There might be multiple users logged in (either via fast user switching or ssh). If user "A" prints, how do you ensure your UI is only displayed to that user?
- There might not be any local users logged in. The print job might have been sent from another machine using Printer Sharing.


A better way to attack this would be if you could describe what it is you are trying to accomplish (i.e. why do you need UI? what does it do?) Then, someone here might be able to suggest alternative ways of getting there.

Dave

---
In English, every word can be verbed.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Printing mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to 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.