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: bartoosterhoorn on Jul 21, '06 01:34:29AM

Maybe you've solved this already ages ago, but just in case: as described the script works fine, but it doesn't revert you FM-settings to your default printer. In other words: if you want a specific FM-file to print a label to a LABELprinter AND to revert to the default system-settings for a LASERprinter afterwards, use the above script but add an applescript-line AT THE END. Example:

- perform AppleScript ["do shell script ("lpoptions -d LABELprinter")"]
- go to lay-out ["LABELprinter"]
- print
- go to lay-out [original layout]
- perform AppleScript ["do shell script ("lpoptions -d LASERprinter")"]

This works fine for me (FM 8, OSX 10.4.5, MacBookPro).



[ Reply to This | # ]