Simple Snippet Creator let [txt, rep] = await fields(["Text", "Replacement"]) let dir = "/Users/fischgeek/.kenv/scripts" // <- Update to your specific path await writeFile(`${dir}/${txt}.js`, `//Snippet: ${txt}\nawait keyboard.type("${rep}")`)