Open Files in BBEdit with Text Wrap Off
Posted April 22nd, 2007 @ 10:06am by Erik J. Barzeski
If you save this script as a droplet, it will open files in BBEdit with text wrapping turned off (regardless of your default preferences).
on open the_files tell application "BBEdit" open the_files with properties {soft wrap text:false} end tell end open
Opening files with soft wrapping off enables BBEdit to open large files (say, 75 MB .sql dumps) much more quickly. If you want to add a dialog prompt you could also save the script in a way that you could activate it with a keyboard shortcut from within BBEdit.
Thanks to John Gruber for the tip. He'd given it to me a long time ago, and again recently when I realized I couldn't find it. So now it's blogged so I cannot forget.
Posted 29 Apr 2007 at 11:31am #
[...] Open Files in BBEdit with Text Wrap Off [...]