-- Close and Delete -- https://c-command.com/scripts/bbedit/close-and-delete -- Summary: Closes the frontmost document and moves it to the trash without a warning. -- Requires: BBEdit 8 -- Install Location: -- Last Modified: 2019-10-02 tell application "BBEdit" if class of window 1 is text window then set f to file of document 1 of text window 1 close document 1 of text window 1 saving no else set f to file of window 1 close window 1 saving no end if end tell tell application "Finder" move f to trash end tell