Anyway to know that a JXA/AS script was called by Hazel?
I am wondering if there is a reliable way in a JavaScript called by Hazel, to know that it was called by Hazel and not Script Editor or CodeRunner.
When developing JavaScript for a smart rule in DEVONthink, I am able to get the current app and switch accordingly in my script, but that doesn't seem to work for Hazel.
I can get the front most app but that doesn't seem robust.
The reason for the request is so that I can fill `theFile` when in dev mode, and skip that code when Hazel is the parent.
When developing JavaScript for a smart rule in DEVONthink, I am able to get the current app and switch accordingly in my script, but that doesn't seem to work for Hazel.
I can get the front most app but that doesn't seem robust.
The reason for the request is so that I can fill `theFile` when in dev mode, and skip that code when Hazel is the parent.