I have been reading MacOSXHints for quite some time. In an effort to contribute and not just leech, here is a hint that I find useful daily. I miss the "Print Selection" option found in some browsers on Windows. I find this useful to quickly print directions, recipes, or anything else where I want an unformatted plain text print out.
Combining some AppleScript and Terminal commands, I created an AppleScript addition that allows me to select text in my browser (currently Camino), click one button, and send it to my default printer. Two items need to be placed on your system to get this to work:
[robg adds: Remember to make the shell script executable with chmod a+x sel_lpr.sh from within the Scripts directory (or wherever you saved it).]
Combining some AppleScript and Terminal commands, I created an AppleScript addition that allows me to select text in my browser (currently Camino), click one button, and send it to my default printer. Two items need to be placed on your system to get this to work:
- Shell script to send the text string to the default printer.
I saved this as ~/Documents -> Scripts -> sel_lpr.sh#! /bin/sh pbpaste | lpr - An AppleScript to capture the highlighted text and send it to the clipboard:
This is, of course, saved in ~/Library -> Scripts -> PrintSelected.app.tell application "Camino" activate tell application "System Events" to keystroke "c" using command down end tell do shell script "~/Documents/Scripts/sel_lpr.sh"
[robg adds: Remember to make the shell script executable with chmod a+x sel_lpr.sh from within the Scripts directory (or wherever you saved it).]
•
[19,608 views]

