At 21:03 -0600 4/6/09, le...@gmail wrote:
>I have a bunch of text files (hundreds, maybe thousands); some are
>hard wrapped at 72 characters, some are hard wrapped at 80 characters,
>a few are hard wrapped at 132 characters, and some are not wrapped at
>all (every paragraph is one line.
>
>I want to o through all of these files and make theam all hard-wrapped
>at 72 characters, what's the easiest way to do this?
For a single open file, the script below. There are various options
for looing through a whole folder.
tell application "BBEdit"
tell the front window -- or named window
remove line breaks
rewrap quoted text width 72
-- save ...
-- close ...
end tell
end tell
If you don't want to open the files inn BBEdit then the job could be
done in no time with Perl, using
<http://perldoc.perl.org/Text/Wrap.html> for example.
JD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
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 specific feature request or would like to report a suspected (or
confirmed) problem with the software, please email to "[email protected]"
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---