Subscribe to
Posts
Comments
NSLog(); Header Image

Open Files in BBEdit with Text Wrap Off

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.

One Response to "Open Files in BBEdit with Text Wrap Off"

  1. [...] Open Files in BBEdit with Text Wrap Off [...]