You can have BBEdit run a script by creating a folder ~/Library/Application Support/BBEdit/Shutdown Items and then adding an AppleScript like this to it. Open Script Editor, paste this in, and then save it to the Shutdown Items folder as a .scpt file.
tell application "BBEdit"
set the contents of the scratchpad document to ""
end tell
Startup Items and Shutdown Items tip found here:
https://matthewminer.com/2020/09/20/bbedit-startup-items
[fletcher]
> On Jan 13, 2021, at 7:03 AM, Peace Keeper <
madd...@gmail.com> wrote:
>
> I like the Scratchpad to cut'n'paste things from outside to bbedit to see either raw material or keep something in mind during my work in the termanial.
>
> I understand that bbedit is storing the scratchpad and so old stuff is also coming up. This is something realised, while the clipboard is staffed. is there a setting "to clean" the scratchpad every time you quit BBEdit ?
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "
sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <
https://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
bbedit+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/cefe194f-cf57-4e61-a62f-570525a501ccn%40googlegroups.com.