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


Click here to return to the 'Switch printers using Terminal in FileMaker Pro 7' 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 7
Authored by: n1qfd on May 24, '05 10:59:37AM
Another way to do this, is to select a unique portion of the printer name and have that as the script parameter. ie:
"do shell script \"lpoptions -d `lpstat -a | grep '"&Get ( ScriptParameter )&"' | awk '{ print $1; }'`\""
For the situation listed above this wouldn't be the best, but for situations where the printer names are distinct – like with a C84 and a LaserJet – this works well.

[ Reply to This | # ]