MACSCRPT Archives

October 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nigel Garvey <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 13 Oct 2011 09:09:54 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
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

ATOM RSS1 RSS2