Re: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
Re: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
- Subject: Re: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
- From: John Stiles <email@hidden>
- Date: Mon, 05 Dec 2005 21:54:57 -0800
A 'rapp' (reopen) AppleEvent does this.
I don't know how to write it in full-on AppleScript, but I'm sure it's
possible to build the appropriate event.
Mark Aufflick wrote:
Hi everyone,
I have a system menu that does things with skype. One of the menu
options brings skype to the foreground (using obvious applescript)
but what I want it to do is to bring the main skype window to the
foreground even if the user has closed it.
The skype cocoa api has no method to do that and it's applescript
dictionary doesn't offer any hints either.
BUT, when you click on the dock icon, skype reacts with exactly the
behaviour I want which got me wondering if there is any system
standard way to send a "dock icon click" event to an application?
Cheers,
/Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden