On 11/10/09 at 10:14 AM, [email protected] (Chris Echols) wrote:
>On Tue, Nov 10, 2009 at 9:24 AM, Rich Siegel <[email protected]>
>wrote:
>>
>>
>>I'm a little confused about what you're trying to accomplish; can
>>you explain the big picture?
>>
>
>Sorry. Bad example. I'm just asking a general question. Not a
>specific one.
Well, all righty then. :-)
>This is not the script I'm wanting to use, but I'm just trying to
>figure out how I would use scripts in Text Factory going
>forward. Where would I insert the "on ApplyTextTransform" and
>would I need to
>modify "text window 1" to be something else like "fileData"?
The "ApplyTextTransform" entry point takes a single parameter,
which is a string of Unicode characters. This is the text that
is being processed by the text factory. The script should
transform it as desired, and then return the modified string as
the result of the ApplyTextTransform function. So, the general
syntax looks like:
on ApplyTextTransform(theString)
-- do something to theString
return theString
end ApplyTextTransform
Enjoy,
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
--
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.