How kjhosein/rtm-milkscript-scripts works
Project type and purpose
• This is an open-source utility collection—specifically, a set of MilkScript (JavaScript) scripts that run inside the Remember the Milk (RTM) Pro environment to automate queries and generate reports on tasks. There is no standalone frontend or backend; each file is an independent script that plugs into the RTM MilkScript engine.
Main components
a. MilkScript Engine (hosted by RTM)
b. RTM Cloud Service / API
c. Individual script modules (*.js files)
d. (Optional) Scheduler or user trigger mechanism
Relationships and interactions
• Each script module is loaded into the MilkScript Engine.
• The MilkScript Engine authenticates and communicates with the RTM Cloud Service over HTTPS.
• The RTM API responds with task data (completed tasks, incomplete tasks, subtasks, etc.).
• The script processes the data and renders a report back in the MilkScript UI or forwards it (e.g., via email or UI output).
Architectural patterns and design principles
• Single‐responsibility: each .js file handles one report type (today’s completed tasks, last month’s completed tasks, etc.).
• Extensibility point: new scripts can be dropped into the repo, each defining its query parameters and output formatting.
Relevant technologies
• JavaScript (MilkScript)
• RTM MilkScript Engine APIs
• HTTPS/REST for RTM Cloud Service
• (Optional) Cron or RTM’s built-in scheduling
Important details to capture
• Authentication flow (MilkScript Engine uses stored user credentials)
• Data flow: Script→Engine→RTM API→Engine→Script output
• Separation of concerns: query logic in each .js, transport in Engine, data store in RTM Cloud