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.
Post
Replies
Boosts
Views
Activity
I turned on the preference setting "xcode "highlight instances of selected symbol" not working" so symbols would highlight with the underline. I have the project NewtonsCradle open and the file NewtonCradle.swift open. When I select a symbol inside of a function it doesn't highlight the other occurences. I have seen it work with other files but I can't reproduce it. I changed the file and saved it to make sure it was wrightable thinking that was the problem. Also the Refactor items are all greyed out.
Some Mac applications use "Show" and others use "Reveal" in menus. There different even within Apple's software. What should I be using? As an example I've seen both of these in menus "Show in finder" and "Reveal in finder" and both do the same thing.