> Creating a BBEdit document and then working on its content seems
> unnecessarily complex (and I haven't managed to get it to work
> properly to begin with). Is there a way to apply "rewrap quoted text"
> directly to a string, rather than to a window?
No, most of the wrapping options are related to the text's container (page
guide, window width).
Here's a script that does what I think you want when added to a Run AppleScript
phase of a Service action:
on run {input, parameters}
tell application "BBEdit"
set wasVisible to visible of scratchpad window
set contents of scratchpad window to input
set w to open scratchpad window
rewrap quoted text w
if not wasVisible then close w
return contents of scratchpad window
end tell
end run
You can't run the service on text in BBEdit itself, but maybe that's okay?
Steve
--
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>