Control Piezo using AppleScript
$ npm install piezo-applescript
const piezo = require('piezo-applescript')
;(async () => {
await piezo.toggleRecording()
})()
Starts or stops recording. Returns a Promise
.
To control Piezo, piezo-applescript simulates the Command-R keyboard shortcut since Piezo itself is not scriptable. Consequently, Piezo needs to be brought to the front every time you toggle recording. I’m hoping Rogue Amoeba will make Piezo scriptable in a future release.