Skip to content

Instantly share code, notes, and snippets.

View L-Steinmacher's full-sized avatar

Lucas Steinmacher L-Steinmacher

View GitHub Profile
@L-Steinmacher
L-Steinmacher / Batch Rename Files
Created December 17, 2022 02:18
To be used with Script Kit to rename a batch of files
// Name: rename ordered files
// Author: Lucas Steinmacher
// Description: renames a batch of ordered files with a prefix that you supply and starting at a given index that you supply
import "@johnlindquist/kit"
import fs from "fs"
// Note: Dropping one or more files returns an array of file information
// Dropping text or an image from the browser returns a string
let fileInfos = await drop()
@L-Steinmacher
L-Steinmacher / note-generator.js
Last active December 17, 2022 02:19
A Script Kit script that creates generic markdown files for note taking
// Name: Note Generator
// Author: Lucas L. Steinmacher
import "@johnlindquist/kit"
import fs from "fs"
/**
* select folder that you want the notes to be generated for
*/
let folderPath = await selectFolder();