Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Switch printers using Terminal in FileMaker Pro' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Switch printers using Terminal in FileMaker Pro
Authored by: Vartan on May 25, '05 04:01:40AM
Ok Krioni, You're right (again :-) and pardon me. FMP remains stuck with last used printer whatever is the way you change the default printer (Printer Setup Utility or Shell script). So the only solution, wich is not so smart, is to use GUI Scripting as I describe in FMForums .

Excuse me, I was so happy finding a new way to deal with this bug that I made congratulations before trying to make it work.

Regards

Vartan

[ Reply to This | # ]

Switch printers using Terminal in FileMaker Pro
Authored by: Krioni on May 25, '05 01:08:20PM

No problem - I work extensively with FileMaker and find it infuriates more often than it impresses. :-( Amazingly enough, it's probably still better than anything else out there (at least for rapid development).

Side note: the FM Forums are very irritating. It seems you have to pay to access anything there, although it seems to indicate you can get in without paying after you register. I went through the whole process of registering, but then was stymied trying to view an old post. I felt like I had been "led on" by the whole thing.



[ Reply to This | # ]
Switch printers using Terminal in FileMaker Pro
Authored by: rlaan on May 26, '05 03:38:00AM

Hi, just to let you know, my Filemaker 7 DOES listen to my default printer using this script. So why is that? Else I wouldn't have posted all this ;-)

What I do is an extensive script that askes the user for a number of fields to fill and the first line of the script is the switching of the printer. Maybe Filemaker needs a second to re-load the printer setting?

Ruben (rlaan)

---
The box said, Windows 95 or better, so I bought OS X.



[ Reply to This | # ]
Switch printers using Terminal in FileMaker Pro
Authored by: rlaan on May 26, '05 03:54:51AM

Just to make things certain, after using this scriptcode I turned ALL filemaker printersettings off in the script, so basically I print without page and printer setup and I just show the print dialog to check that the right printer is indeed selected... And it has been for the last week.

Funny thing, using other printers in a diffrent filemaker app seems to work fine using the official Filemaker method... The behaving is eratically...

Ruben

---
The box said, Windows 95 or better, so I bought OS X.



[ Reply to This | # ]
Switch printers using Terminal in FileMaker Pro
Authored by: Greg Torok on May 27, '05 11:25:21AM

I really, really, really wished this worked for me, but setting this up to switch and print multiple jobs to multiple printers within a single FileMaker script is still not working. I removed all Page Setups and Print settings and still no joy.

I'm trying to use this to change to multiple printers and print within a single script. Basically I need, in one script, to change to a small label printer, print a label, change to a large label printer, print a different label, change to a laser printer and print a document.

Has anyone been able to get this to work to print a document to printer A, switch to printer B and print it there too, then switch back to printer A all within one script or series of scripts, without hitting Cancel at the print dialog (because that seems to clear FileMaker's preference for the last used printer, then the next dialog shows the correct printer)?

Even when I use the Shell method, unless I Cancel a print request between each printer change, Filemaker retains the last used printer regardless of the current default. I'm using GUI scripting to cancel a print job between each new printer selection, which I'd like to get away from as it slows things down.



[ Reply to This | # ]