In my message of Thu, 13 Oct 2011 09:09:54 +0100, I wrote:
>On my machine, the result comes back visibly much faster if the full
>reference is used:
>
> tell application "System Events"
> tell process "Safari"
> value of attribute "AXMenuItemMarkChar" of menu item "Block Pop-up
>Windows" of menu 1 of menu bar item "Safari" of menu bar 1
> end tell
> end tell
In fact there _is_ no result if the menu item's not checked. The code
for testing and disabling if necessary would have to be something like:
tell application "System Events"
tell process "Safari"
tell menu item "Block Pop-up Windows" of menu 1 of menu bar item "Safari" of menu bar 1
if (value of attribute "AXMenuItemMarkChar" exists) then click
end tell
end tell
end tell
NG