On Jun 6, 2019, at 7:11 AM, Donald Goyette <[email protected]> wrote:
> on menuselect(menuName, itemName)
>       -- returning false lets the menu command itself run
>       return false
> end menuselect
> on postmenuselect(menuName, itemName)
>       if menuName = "Check" and itemName = "Document Syntax" then
>             tell application "System Events"
>                   tell process "BBEdit"
>                         if name of window 1 contains "HTML Syntax Error" then
>                               tell window 1
>                                     set warning_checkbox to (name of every 
> checkbox whose name contains "Warning") as text
>                                     if value of checkbox warning_checkbox is 
> 1 then
>                                           click checkbox warning_checkbox
>                                     end if
>                               end tell
>                         end if
>                   end tell
>             end tell
>       end if
> end postmenuselect 

It looks like that should work, and there are no errors reported (once I 
figured out how to save it as an application), but the warning check box 
doesn’t get unchecked. (12.6.4).


-- 
"He is simply a shiver looking for a spine to run up." - Paul Keating


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/756D351B-4511-42EB-9B20-65DB09CD8CD8%40kreme.com.

Reply via email to