Seems that's still an issue in Sketch 47.1. I was trying to access
actionContext.document.hasArtboards() but it always returns empty array and
Is there any other way to determine if document has any artboards, just after document was initally opened?
Registering function via
coscript.scheduleWithInterval_jsFunction doesn't seem to work inside an action handler, but handler isn't called at all.