If you don’t mind to use an external AS app - this line is all I need to get my basic attributes I need in each and every file ready:
createUserAttributes_db("AssignPrototype:string;DebugNote:string;DefaultPrototype:string;DoDebugLog:boolean;HeadingLevel:dictionary;SelectPrototype:dictionary;");
Then I create my global preferences file:
create("/gPreferences");
$DisplayedAttributes("/gPreferences") = "HeadingLevel;SelectPrototype;DebugNote;DoDebugLog;DefaultPrototype";
$HeadingLevel("/gPreferences") = "1:1;2:2;3:4;4:4;5:3;6:3";
$DebugNote("/gPreferences") = "/debug";
$DefaultPrototype("/gPreferences") = "pFolder";
Then I create some prototypes like:
create("/Prototypes/pFolder");
$DisplayedAttributes("/Prototypes/pFolder") = "AssignPrototype";
$OnAdd("/Prototypes/pFolder") = "setPrototypeOnAdd_db();";
$Badge("/Prototypes/pFolder") = "folder-settings-outline";
$Edict("/Prototypes/pFolder") = "if(!$IsPrototype){$AssignPrototype=$SelectPrototype(" + "'" + "/gPreferences" + "'" + ")[$Name];}";
$OnRemove("/Prototypes/pFolder") = "doArchive_db();";
and so on - all this action code lives in a stamp. So for a new file I add the hints from the TBX menu, copy two notes (the stamp and a library note with some basic functions), run the stamp once and I’m ready to go. Takes less then a minute
As an alternativ for a new file: just store a copy of a prepared file anywhere and copy this as a start if you need a new one. The above method works with existing files too.