On 30 Jan 2019, at 14:46, TJ Luoma wrote:

If the former, there's probably a way to re-map ⌘W to save-then-close…
if not, you could surely do so with Keyboard Maestro.

Create an AppleScript and save it as `File•Close.scpt` into the `BBEdit/Menu Scripts` folder.

The following is untested (ripped from another script), but may get you close to what you want:

```applescript
tell application "BBEdit"
        set mydocment to front document
        if ((state modified of mydocument) is false) then
                return
        else
                save mydocument
                return
        end if
end tell
```

Check the manual for more info about attaching scripts to Menu Items.

-cng

--

    Charlie Garrison                   <[email protected]>
    Garrison Computer Services      <http://www.garrison.com.au>
    PO Box 380
    Tumbarumba NSW 2653  Australia

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to