@dbrody we do as same as you, but we listened to the sketch onOpenDocument
action, there has a problem that is when the document open, the document.documentWindow().contentView()
is not ready. so we add a setTimeout
to do delay, but it will crashed and bring some bugs.
What did you do with that ?