drawbot icon indicating copy to clipboard operation
drawbot copied to clipboard

Prompt to/auto-save sketch before running

Open MauriceMeilleur opened this issue 4 years ago • 3 comments

For boneheads like me that:

  • forget to regularly save their work,
  • are prone to accidentally running sketches that lock up the application so hard that cancelling won't stop them (to pick a completely random example: by misreading the documentation for an itertools function), and
  • don't want to force-quit DB and restart, because they'll lose work

it would be nice to have an auto-save feature that

  • prompts you to name/save your sketch before running it for the first time, and
  • auto-saves sketches prior to subsequent runs.

MauriceMeilleur avatar Jan 04 '22 15:01 MauriceMeilleur

DrawBot already saves the last script to the defaults (see)

And restore the script when DrawBot reopens and there is something in stored in in the defaults.

typemytype avatar Jan 04 '22 21:01 typemytype

My apologies, I'll have to watch more closely next time—fortunately that probably won't be long in coming—but yesterday I thought I lost about 15min of work after locking up the app with a typo in a permutations() call, and force-quitting after watching the beach ball of death spin for a half-hour. I'll go ahead and close the issue—if I see this again I'll look harder, maybe it's something else going on?

MauriceMeilleur avatar Jan 05 '22 14:01 MauriceMeilleur

maybe it needs to be saved to disk so the script becomes more accessible: a simple file vs reading a preference .plist

typemytype avatar Jan 05 '22 21:01 typemytype