Christopher Stone wrote on Wed, 12 Oct 2011 17:40:01 -0500:

>On Oct 11, 2011, at 23:43, Mark Lively wrote:

>> This toggles it 
>> 
>> tell application "System Events"
>> 	tell process "Safari"
>> 		click menu item "Block Pop-up Windows" of menu "Safari" of menu bar
1
>> 	end tell
>> end tell
>> 
>> But I am having issues finding a way to read it.  
>
>______________________________________________________________________
>
>tell application "System Events"
>  tell process "Safari"
>    value of attribute "AXMenuItemMarkChar" of menu item "Block Pop-up
>Windows" of menu "Safari" of menu bar 1
>  end tell
>end tell

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


NG