Re: Show the dock icon's context menu:

2009-06-21 Thread Andrew Farmer
On 19 Jun 2009, at 16:37, Ian was here wrote: I think the best way to show an application dock icon's context menu from within the application itself is to write an AppleScript that can find the desired application's dock icon, then ask it to show its context menu. And how would you

Re: Show the dock icon's context menu:

2009-06-21 Thread Uli Kusterer
Am 22.06.2009 um 02:46 schrieb Andrew Farmer: And how would you propose to do that? AppleScript isn't magic (sadly). It can't do anything that you can't do from code already. Look at the docs. AppleScript supports GUI scripting, which is a layer above the accessibility APIs and some other

Re: Show the dock icon's context menu:

2009-06-21 Thread Michael Ash
On Sun, Jun 21, 2009 at 9:19 PM, Uli Kustererwitness.of.teacht...@gmx.net wrote: Am 22.06.2009 um 02:46 schrieb Andrew Farmer: And how would you propose to do that? AppleScript isn't magic (sadly). It can't do anything that you can't do from code already. Look at the docs. AppleScript

Re: Show the dock icon's context menu:

2009-06-19 Thread Ian was here
I think the best way to show an application dock icon's context menu from within the application itself is to write an AppleScript that can find the desired application's dock icon, then ask it to show its context menu. ___ Cocoa-dev mailing

Re: Show the dock icon's context menu

2009-06-12 Thread Clark Cox
Right-click on it, control click on it, or regular-click on it and hold the button down for a few seconds. On Fri, Jun 12, 2009 at 2:33 PM, Ian was herehowlew...@yahoo.com wrote: I've googled the heck out of this thing, but came up empty handed. Does anyone know how to make the context menu

Re: Show the dock icon's context menu

2009-06-12 Thread Sidney San Martín
Maybe we should assume that the goal is to display it programmatically? I've also wanted to do this and haven't found a way — in one application, having a left click on the Dock icon show the menu would have been particularly useful. On Fri, Jun 12, 2009 at 5:53 PM, Clark Coxclarkc...@gmail.com

Re: Show the dock icon's context menu

2009-06-12 Thread Clark Cox
Short of simulating a mouse click on the appropriate spot, I don't think this can be done. Finding what that spot is would also be difficult; you *may* be able to use the accessibility APIs to accomplish this, but that would, of course, require that the user had enabled accessibility. On Fri, Jun