On 10/23/12 at 10:28 AM, [email protected] (John Delacour) wrote:

On 23/10/2012 10:43, Stuart Gilson wrote:

How do you refer this perl script to a file or files?

The script takes the whole text of the front document as STDIN (input)
unless you have made a selection, in which case it takes the
selection. « while (<>) { ... » means, in effect, while reading the
document/selection line by line.

The other part of the answer is that you save the script with a memorable name in a text file and put the file in ~/Library/Application Support/BBEdit/Scripts. It will then show up in BBEdit's Scripts menu (the one that looks like a scrolling sheet of paper).

And do feel free to fiddle with the script or ask questions to understand how it works or how to make variations. This list has John and a bunch of other smart subscribers, standing by to be helpful.

HTH


   - 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