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 24, '05 06:58:47AM
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
It was really difficult to make this work because of timing problems between FMP Scripts and AppleScripts. This Cups solution is far more better, no other app to launch, no special external scripts to call, no need to activate GUI scripting, and last no delay.

Congratulations, I'm sure your solution will be appreciated by the FMP community.

Regards

Vartan

[ Reply to This | # ]

Switch printers using Terminal in FileMaker Pro
Authored by: Krioni on May 24, '05 06:32:48PM

Vartan,

But does it _work_? Did you read my description of how FileMaker 7 ignores the default printer once you have printed? Does your solution get around this annoying (and wrong) behavior of FileMaker 7, or does yours also only work on FileMaker 6?



[ Reply to This | # ]
Switch printers using Terminal in FileMaker Pro
Authored by: Vartan on May 25, '05 03:42:21AM

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.
To avoid timing problem between FMScripts and AppleScripts I have been obliged to build external AppleScripts, called from FMScripts.

Vartan



[ Reply to This | # ]