0

trying to enable it so that when i press t inside a screenshot markup, the text button is clicked

enter image description here

here's my working script:

tell application "System Events" to click button 2 of window "Screen Shot" of process "screencaptureui"

just need to activate the shortcut at the right time, and deactivate it while typing inside the textbox obviously..

3
  • For something like, this there is not really a need to write it in that manner when simply tell application "System Events" to click button 2 of window 1 of process "screencaptureui" does the job. Jul 28, 2021 at 20:33
  • yeah but are you able to do this?
    – Ishvara
    Jul 28, 2021 at 23:17
  • What you are asking to do is not doable with basic vanilla AppleScript Jul 29, 2021 at 0:23

0

You must log in to answer this question.

Browse other questions tagged .