External JavaScript issue

Hello,
First of all thanks a lot for such a great piece of software!
I'm trying to use external JavaScript with a wrapper-function:
I am selecting a scpt file, but I'm still getting
Embedded script works (without the wrapper function) but that is highly inconvenient and creates lots of code duplication.
Thanks
First of all thanks a lot for such a great piece of software!
I'm trying to use external JavaScript with a wrapper-function:
- Code: Select all
function hazelMatchFile(theFile, inputAttributes) {
...
}
I am selecting a scpt file, but I'm still getting
- Code: Select all
[Error] JavaScript failed: Error executing JavaScript on file /redacted/05350001.MOV.
2018-11-04 16:10:38.884 hazelworker[12100] OSAScript error: {
OSAScriptErrorNumberKey = "-1708";
}
Embedded script works (without the wrapper function) but that is highly inconvenient and creates lots of code duplication.
Thanks