The promised pasteboard item is a nice way to know when the target app has read the text. One more detail from my own work on typing into other apps: in Safari, Mail and other WebKit views, setting AXValue on a text field returns success, but the text can land in whichever field has the page’s focus, and reading the field back can still report the new value. What held up for me was setting AXFocused, waiting until the app’s focused element really is that field, typing, then reading back. Also, WebKit builds a page’s accessibility tree on the first query, so a window that looks nearly empty is worth reading a second time.