Close All Other Documents in BBEdit’s Window

A simple AppleScript to close all other documents (ie: everything except for the document you’re currently editing) in the front-most BBEdit window:

Copy, paste, & save it as a file in ~/Library/Application Support/BBEdit/Scripts, where you’ll be able to invoke it via BBEdit’s Scripts palette (Window → Palettes → Scripts) or via the Scripts menu (whose visibility can be toggled on or off in the Preferences window’s Menus & Shortcuts pane).