On 2011-08-10, rowen wrote:

I'd want to write a script that reports the sum and mean of a column
of numbers that are selected using column selection.

I have a Python text filter that does this now with normally selected
text (working on the first number found on each line), but it writes
the information after the selected text (by echoing the input and then
writing the new info). That technique won't work with a column
selection; there's no obvious place to safely write the results.

I would prefer to open a new window and write the results there. Is
there some easy way to do this? From a Python script?

My Python is minimal, but this would be trivial with regular expressions in Perl, without even selecting the column beforehand.

But you might be able to do without going outside of BBEdit -- are you familiar with Text -> Process Lines Containing... ?



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to