Issues Writing Scripts (current running v5.10.3 & Mac OS 15.3.2)
Hi SoundFlow Forum,
I’ve been trying to run even the most basic script like sf.log() or sf.ui.showNotification() in a properly created Script command, but I get: TypeError: Object has no method 'log' . I’ve, fully reinstalled SoundFlow, cleared ~/Library/Application Support/SoundFlow, and created new Scripts from the correct location. It seems my SoundFlow install is not initializing the script engine properly. Can anyone help me reset my command environment? Thank you in advance!
- Christian Scheuer @chrscheuer2025-04-07 00:17:21.720Z
Hi Moe,
There's no method called
sf.log()
, and neithersf.ui.showNotification
- so the errors you're seeing in the editor are correct.
Were you using AI to try to generate scripts for SoundFlow possibly? Generally speaking, those quite often hallucinate when writing SF scripts that may look correct but in reality aren't.The log function is just
log(...)
:log(`This is a test`);
You should be able to see thousands of examples of this on the forum. The forum generally is the best resource for learning how to write scripts.
I'd also advise starting out by creating macros and then converting them to scripts as another good way to get started.
Here are some example videos of how to learn to do basic UI automation (they're quite old but still decent):
- MMoe Doe @Moe_Doe
Hi Christian,
Thank you for your help. Yes, I was using AI to help me write a script. I will take heed and use the forum to help me write scripts. Thank you once again.