


ACTION will load it from the TAD-Library action which is an inbuilt version of the library and may produce slightly faster execution in my experiments, but on a well-specified device you’ll likely see no practical difference to FILE. The default is FILE where the library is included by loading in a single library file. There is an option for a mode in the TAD action of the ThoughtAsylum action group that you’ll see explained in the initial script comment. These files can be referenced separately for run purposes, but I have a shell script that builds a single library file (the one that is distributed) that takes less than a second to run on my Mac, and I have it tied to one of my Elgato Stream Deck profiles so it is a button away. It allows me to work on multiple files in parallel with ease. The code that I work with for the library is held in a number of separate JavaScript files. I’m not sure how many others might be interested in that sort of thing, but here’s peak behind the curtain. I would be really interested in your workflow of creating the library. are all fully documented on their own web site in the same sort of style as Drafts’ own scripting documentation, and include simple examples. If you look at the actions in the ThoughtAsylum action group, you’ll see a large proportion of them do exactly this.Īll of the classes, functions, etc. If you have the ThoughtAsylum action group, you can use an “Include Action” as your first step and set the action to be “TAD”. I think including the underlying script library in your own actions and building your own personalised actions offers up real potential in terms of accelerating how quickly you can build them, and perhaps giving some inspiration as to what could be done with them. While the action group is certainly intended to be useful in its own right, I’m hoping that it will be the tip of the iceberg for a good many Drafts users. For what it’s worth, there was another update published earlier today and I’ve been working this evening on porting in yet more functions and actions I have lurking in various personal action groups.
