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: PDF Workflow PMDestinationType 5



Hi Rich,

Thanks for the hints. I did look in PMDefinitions.h, but my copy only goes up to 4. Maybe your copy is from a Tiger install? (I'll have to double-check when I get to work Monday. :-) Anyway, nice to know I can depend on that value being what I was expecting.

However, the PMSessionCopyDestinationLocation call I guess I just missed, probably because it looks like it is kPMDestinationFile specific. But I just put it in and it is working fine, so that's one fewer problem my users will have to deal with.

Thanks again, and happy new year.
Bill



At 1:12 PM -0800 1/1/05, rblanchard wrote:
Bill,

In /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h you should see:

enum {
 kPMDestinationInvalid = 0,
 kPMDestinationPrinter = 1,
 kPMDestinationFile = 2,
 kPMDestinationFax = 3,
 kPMDestinationPreview = 4,
 kPMDestinationProcessPDF = 5
};

You can call PMSessionCopyDestinationLocation() to get the workflow item that was selected.

I hope this helps,

Rich

Message: 1
Date: Fri, 31 Dec 2004 18:07:08 -0700
From: Bill Peters <email@hidden>
Subject: PDF Workflow PMDestinationType 5
To: email@hidden
Message-ID: <a06020402bdfba23f67cb@[10.0.1.2]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Hi,

I have a print spool application that processes PDF files through PDF
Workflow. As part of the setup (and so that I don't have to annoy the
user with a Print Settings dialog all the time) I capture a
PMPrintSettings object and save it in the user preferences. I then
use this for each job in the queue.

One of my users inadvertently dismissed this Print Settings dialog by
choosing my application out of the PDF Workflow popup. So when I went
to print, I ended up processing the PDF file and then sending it back
to myself.

Now when I check for this condition, I use
PMSessionGetDestinationType on my PMPrintSettings object and get a
type of "5". I have two problems with this:

1) This value is not documented as far as I can see.

2) There may be a legitimate need for the user to select a "next
destination" application in the PDF Workflow popup menu. I just don't
want the user to select _my_ application from that menu.

The net effect of this is that I can't just compare the destination
value to "5". I really need a way of finding out which application
was selected and warn the user if my application was chosen.

Does anyone know of a way to detect which application was selected
from the PDF Workflow popup? Also, is there any additional
documentation about the constants returned from
PMSessionGetDestinationType?

Thanks,
Bill

_______________________________________________ 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
References: 
 >PDF Workflow PMDestinationType 5 (From: rblanchard <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.