Post not yet marked as solved
Post marked as unsolved with 3 replies, 1,922 views
I'm trying to get the current source document using applescript. I need to modify the text selection. Getting the first, last or front source document doesn't work all the time. You ask for front document and it may be correct. Then you change docuemts and ask again and you still get the last one. It also needs to work if Tab windows are shown. I don't see any object that contains the current editing document. I also need to know if the document has the current focus, don't want to do a copy if the edit window isn't the focus.