Re: How to switch the default printer?

2009-10-17 Thread Scott Ribe
Well... suppose from my application, I want to convert a Word document to PDF. How would I do that? I did quite a bit of research and the only way I found was to use CUPS-PDF and have Word print to that printer. Then, I can retrieve the converted PDF document. Is there any other way? You are

Re: How to switch the default printer?

2009-10-17 Thread Laurent Daudelin
Thanks, Scott! I had started to look at the printing prefs file as it contained information about the printers in use. Appreciate the sharing! Cheers! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys

How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
I tried different options to transparently switch the default printer and restore it (lpoptions called from my app) but although it works under SL, it doesn't seem to work so well for Leopard. Anybody has any suggestion on how to do that? Thanks in advance! -Laurent. -- Laurent Daudelin

Re: How to switch the default printer?

2009-10-15 Thread Kyle Sluder
On Thu, Oct 15, 2009 at 10:33 AM, Laurent Daudelin laurent.daude...@verizon.net wrote: Anybody has any suggestion on how to do that? This sounds like a terrible idea. If you want to maintain a separate default printer for your app or for a document (InDesign does this, for example, because

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
Yes, I know, it's terrible, but it's part of being able to convert any document to PDF and so far, I haven't found any other way then using a virtual printer driver. So, I have to temporarily switch to that printer to convert a document, then revert back to what it was. It's not only for my

Re: How to switch the default printer?

2009-10-15 Thread Kyle Sluder
On Thu, Oct 15, 2009 at 10:58 AM, Laurent Daudelin laurent.daude...@verizon.net wrote: Yes, I know, it's terrible, but it's part of being able to convert any document to PDF and so far, I haven't found any other way then using a virtual printer driver. So, I have to temporarily switch to that

Re: How to switch the default printer?

2009-10-15 Thread David Duncan
On Oct 15, 2009, at 10:58 AM, Laurent Daudelin wrote: Yes, I know, it's terrible, but it's part of being able to convert any document to PDF and so far, I haven't found any other way then using a virtual printer driver. So, I have to temporarily switch to that printer to convert a

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
Well... suppose from my application, I want to convert a Word document to PDF. How would I do that? I did quite a bit of research and the only way I found was to use CUPS-PDF and have Word print to that printer. Then, I can retrieve the converted PDF document. Is there any other way? I don't

Re: How to switch the default printer?

2009-10-15 Thread Kyle Sluder
On Thu, Oct 15, 2009 at 11:17 AM, Laurent Daudelin laurent.daude...@verizon.net wrote: Well... suppose from my application, I want to convert a Word document to PDF. How would I do that? I did quite a bit of research and the only way I found was to use CUPS-PDF and have Word print to that

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
A print Apple Event? Can you elaborate a bit? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software laurent.daude...@verizon.net Photo Gallery Store:

Re: How to switch the default printer?

2009-10-15 Thread Kyle Sluder
On Thu, Oct 15, 2009 at 11:27 AM, Laurent Daudelin laurent.daude...@verizon.net wrote: A print Apple Event? Can you elaborate a bit? Apple Events are the IPC mechanism underlying AppleScript and Automator. I won't go into a detailed explanation, but open up AppleScript Editor and take a look at

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
On Oct 15, 2009, at 11:42, Kyle Sluder wrote: On Thu, Oct 15, 2009 at 11:27 AM, Laurent Daudelin laurent.daude...@verizon.net wrote: A print Apple Event? Can you elaborate a bit? Apple Events are the IPC mechanism underlying AppleScript and Automator. I won't go into a detailed

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
Any more suggestion on this problem? After I reported that the little script I tried was not working, everybody suddenly went mute. I'm still having to find a solution to this nagging and, quite stupid problem. Thanks in advance. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin

Re: How to switch the default printer?

2009-10-15 Thread Graham Cox
On 16/10/2009, at 6:05 AM, Laurent Daudelin wrote: Any other suggestion? Log a bug with Microsoft? As usual, they have a tendency to do things their way rather than the right way. --Graham ___ Cocoa-dev mailing list

Re: How to switch the default printer?

2009-10-15 Thread Laurent Daudelin
Yes, I guess I could do that. And then go after every application developer that doesn't support the Apple Event print properties. That probably means I would never finish the application I'm working on. Unfortunately, that's the bottom line, I have to find a way to convert any document that