sammy123 1 Posted February 3, 2020 Share Posted February 3, 2020 Hello, With UI Browser, I created the script below which expands / collapses the list of notebooks in the evernote sidebar. Since the script was created with UI Browser, it is created within a certain 'window' (in fact a notebook window which carries the notebook name which is Templates for Letters and Emails. I would like to generalize the script to work in any Evernote window (=notebook), ie not have in the script of window "Templates for Letters and Emails" 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 ``` Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now