I am trying to get this applescript to work that acknowledges the contextual menu is open = true
Can anyone help me solve this so I can get the position and size of the AXMenu and position and size of any child elements, thankyou
pic 1 - shows that the menu is actually open at the time the script is run, along with AX attribute information
http://www.graphicmedia.com/images/image%201.jpg
pic 2 - shows the applescript as it currently stands showing AXMenu does not exist
http://www.graphicmedia.com/images/image%202.jpg
What am I doing wrong, surely if the accessibility inspector can report position of elements, or the screen is currently displaying the elements that I need to examine then it can be acknowledged by applescript
Thanks
Mark
AppleScript: AppleScript 2.1.2
Browser: Safari 533.21.1
Operating System: Mac OS X (10.8)
Which Accessibility Inspector version are you using ?
I uses version 4.0 and get a different behavior.
https://www.box.com/s/6uazwsnv4iyu02osyg86
Yvan KOENIG (VALLAURIS, France) mercredi 27 mars 2013 17:46:42
I am using version 2.0 of Accessibility Inspector
does Accessibility Inspector version 4 mean that applescript then behaves differently and then reports true for AXMenu if it is displaying on screen.
Any clarification or help in getting position and size of contextual menu and its children menu items would be really appreciated.
Thanks
Mark
AppleScript: AppleScript 2.1.2
Browser: Safari 533.21.1
Operating System: Mac OS X (10.8)
No answer, I was just puzzled by the different datas returned on you machine and on mine.
When we do the trick by hand, when action 2 is perfomed and the cursor is inside the menu, if you look at the screenshot which I pointed to, you may see that the Inspector no longer report a reference to an image.
I guess that your problem is linked to that.
Yvan KOENIG (VALLAURIS, France) mercredi 27 mars 2013 19:09:41