Select Text by Simulating a Drag
Use Find Mode
Section titled “Use Find Mode”- Use
command.moveCursorToTextto enter Find Mode and move to the beginning of the target text. - Trigger
command.toggleDragto start dragging. - Use
command.moveCursorToTextagain to move to the end of the target text. - Trigger
command.toggleDragagain to finish the drag.
You can also use command.dragToText directly instead of steps 3 and 4.
Use Mouse Control Mode
Section titled “Use Mouse Control Mode”- Use Mouse Control Mode to move the cursor to the beginning of the text.
- Hold Tab to start dragging.
- Keep using Mouse Control Mode to move the cursor to the end of the text. You can also hold Command to constrain movement to the current element group.
- Release Tab to finish the drag.