In Sublime Text 2, there is a save_on_focus_lost preference option. When set, every time you switch to another app all current files are saved. Is there a way to make BBEdit behave the same way?

2 Answers 2


BBEdit has "Attachement Point" scripts that are automatically run during different conditions. Here is a list of Attachment Points:


Here is a script that should do what you want:



I think the answer is No, I lost most of the edit for the last few months, I am not used to saving files as most of the editor does auto same nowadays, please add the feature as soon as possible.

  • Welcome to Ask Different. The other answer pretty conclusively shows this is possible and unlimited undo / redo might also save your work. Also, don’t confuse us for Apple support or BBEdit support - We’re a volunteer site for mutual assistance.
    – bmike
    Feb 28, 2021 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .