When I run a script in Script Debugger I get an error, Error: DND type is not supported by this tool (telDNDTypeNotSupp:-10024), while running it in Script Editor works as expected. Searching for this error returned 0 results, so this post can work as a reference for other people bumping into it in the future.
The code where it happens:
tell application "Google Chrome"
make new window with properties {mode:"normal"}
set newTab to make new tab with properties {URL:"chrome-extension://bkdgflcldnnnapblkhphbgpggdiikppg/dashboard/html/browser.html"}
I am not sure what DND (not DNS) is?
The extension I am opening is DuckDuckGo Privacy Essentials.
In case it ever comes up in a Trivia question, error telDNDTypeNotSupp -10024 is from the Telephone Manager, from pre-Cocoa days. The âDNDâ stands for âDo Not Disturbâ and the various supported types included âInternalâ and âExternalâ do not disturb messages.
In the context of the OPâs error message, it is clearly a red herring. In MacErrors.h it is defined as: errAECantPutThatThere = -10024; /* in make new, duplicate, etc. class can't be an element of container
which led to the solution in my previous post.