Joel
March 19, 2026, 7:04pm
21
Nige_S:
Joel:
It works when the cursor is the to top portion of the e-mail (i.e., To, From, Subject, etc.) but not when it is located elsewhere in the body.
Well, no. If the insertion point (not the "cursor"! ) is in the email's content then the email's content element is already active. The insertion point going to the beginning of the text is a happy accident of activating the previously-inactive element.
If you want to jump to the beginning of the content when already in the content, the usual way is to send ⌘↑. If you want to have a single macro that puts the insertion point at the start of the content, whether the insertion point is in a "header" field or already in the content then run the AppleScript and send the keystroke.
Or use the AS to activate a non-content element first, then the content element:
tell application "System Events"
tell process "Mail"
set focused of text field 1 of window 1 to true
set focused of UI element 1 of scroll area 1 of group 1 of group 1 of window 1 to true
end tell
end tell
Not step 4 -- run the macro with "Find" still active.
Appreciated, tested and understood.
Everything is working as it should other than the your "find without image" macro. I have no idea why it is not working. I will dig in time permitting as I am curious.
In the end, that the "move" macro finds both single and multi-word searches means it will be teh macro that I incorporate on my work flow though, I am still curious. Just saying!!
1 Like