With UI Browser, I created the script below which expands / collapses the list of notebooks in the evernote sidebar. That being said my question is a general one, not evernote specific.
Since the script was created with UI Browser, it is created within a certain ‘window’ (in fact a notebook window), ie a specific notebook called Templates for Letters and Emails.
I would like to generalize the script to work in any evernote window (=notebook).
I am an ignoramus. Please don’t be too technical.
thanks in advance for your time and help
use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions -- Use this script as a wrapper for GUI Scripting statements when you are confident that GUI Scripting is available and enabled or that the user knows how to enable it if necessary activate application "Evernote" tell application "System Events" tell process "Evernote" -- insert GUI Scripting statements here: click UI element 3 of UI element 1 of row 30 of outline 1 of scroll area 1 of group 1 of splitter group 1 of window "Templates for Letters and Emails" end tell end tell