Do folks have tips for interacting with the inspector panel? Some things I'd like to do are programmatically move focus to a text field or getting the contents of a field. Or perhaps it's to programmatically trigger the color panel to open?
For example, my last attempt at getting the contents of an override field from the inspector resulted in this messy code diving down through the views:
let sketch = require('sketch')
let document = sketch.getSelectedDocument()
let overrideTextField = document.sketchObject.inspectorController().currentController().stackView().sectionViews().subviews().subviews().subviews().subviews().subviews().viewAtColumn(0).subviews().subviews().subviews() //be sure to select a symbol with a text override as the first override
let text = overrideTextField.stringValue()
let selectedRange = overrideTextField.currentEditor().selectedRange()
let selectedText = text.slice(selectedRange.location, selectedRange.location + selectedRange.length)