At 12:45 -0700 03/01/2013, LuKreme wrote:
>Text factories, as far as I can tell in my limited use of them, either
>act on all the text in the document, or on the selected text.

If you mean employing a text factory as a _text filter_[1], that's correct,
and these same conditions apply to every type of text filter and to all
Text menu commands (other than Hard Wrap).


[1: Please refer to this post for some additional background:
    <https://groups.google.com/group/bbedit/msg/d5ac144d340bdd8a?hl=en> ]


>Is there any way to make a text-factory behave like the Hard Wrap menu
>item? That is to say, operate on the current line/paragraph if nothing
>is selected?

There is not, since BBEdit will send only the selected text to it.


>If BBEdit did not have a Hard Wrap function and you had to recreate it
>via a text factory, would it be possible?

Not with a text filter, though one could do this with a suitable script.


> Also, is it the case that to attach a script to a menu item it must be
> an AppleScript? Reading page 290 never states this, but all the following
> examples are AppleScripts, even the one that calls `do shell script`.

Yes; attached scripts must be AppleScripts. (Though that's all the parent
chapter deals with, I can see how this may not be apparent in local context
and will clarify same in the next turn of the manual.)


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>

-- 
-- 
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>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to