|
|
Switch printers using Terminal in FileMaker Pro
Um, actually, you CAN change the default printer without using UI Scripting. The Printer Setup Utility is scriptable. Here's code that let's you change the default printer:
Now for the bad news: FileMaker Pro 7 (FM Pro 6 is OK) really does not honor your change of the default printer. If you have not yet printed anything in FileMaker 7, it will use the default printer. If, however, you HAVE printed already, it ignores the fact that you changed the default printer and sticks with whatever printer FileMaker 7 last used. If you change the default printer BEFORE you have printed in FileMaker 7 (since it was launched), it will use the new default printer. The bad news there is that if you then try to switch the default printer BACK, FileMaker doesn't notice, and keeps using the last printer it printed with, at least until you quit and re-launch FileMaker. So, there is no way to get FileMaker 7 to notice that you have switched printers. It stubbornly continues to use the last printer it used, no matter what you do, unless you actually PICK a different printer from the print dialog WITHIN FileMaker 7. Infuriating. FileMaker 6 DOES honor the default printer. Imagine that.
Switch printers using Terminal in FileMaker Pro
OK Krioni,
you're right the printer setup utility is scriptable, but this suppose to launch this app wich is time consuming.
I had build a solution using GUI Scripting, wich you can read on
FMForums
Congratulations, I'm sure your solution will be appreciated by the FMP community. Regards Vartan
Switch printers using Terminal in FileMaker Pro
Vartan,
Switch printers using Terminal in FileMaker Pro
It works but it's far more compllicated than switching the default printer from shell script. My solution uses GUI Scripting and makes what you would have done : switch the printer from the printer local menu in the printer dialog.
Switch printers using Terminal in FileMaker Pro
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
Switch printers using Terminal in FileMaker Pro
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).
Switch printers using Terminal in FileMaker Pro
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 ;-)
Switch printers using Terminal in FileMaker Pro
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.
Switch printers using Terminal in FileMaker Pro
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.
Switch printers using Terminal in FileMaker Pro
Haven't fully tested this but as others have said for FM developers it's priceless. One question I have. (Good grief sounds like Yoda !) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.43 seconds |
|