OK, I used Wavelength (Mac app) and asked the AI to write an AppleScript to do this and it got close enough that I think this works:
tell application "System Events"
tell process "BBEdit"
set menuItemEnabled to enabled of menu item "Save" of menu "File" of menu bar 1
end tell
end tell
Worth trying anyway.