Tutorial on Drafts Scripting?

Here are my suggestions. While they have a loose order, you can absolutely approach them in parallel with relatively no issue. But you do need to have at least a few of the basics of core JavaScript to understand what you come across in the others.

  • Read Eloquent JavaScript.
    • This will give you a grounding in JavaScript.
    • Try to learn what is provided via the browser and the document object model (DOM), and what is the core language. You can utilise the latter in Drafts.
  • Read the Drafts scripting documentation.
    • They describe things pretty well for anyone who has worked with any sort of programming language that has a modicum of object support.
  • Read through some examples on the forum.
    • This forum has lots of examples posted on it already. Try searching if you are looking for an example of something in particular.
    • If you get stuck, post a question and ask for assistance.
  • Continue to look at actions in the action directory.
    • Pick them apart, change them, destroy them and bend them to your will :nerd_face:

Hope that helps.

3 Likes