• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise) (From: Mark Aufflick <email@hidden>)

  • Prev by Date: Re: Some Newbie Questions
  • Next by Date: Re: NSToolbar missing notification?
  • Previous by thread: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
  • Next by thread: Re: Slightly OT: simulating a dock icon click via an AppleEvent (or otherwise)
  • Index(es):
    • Date
    • Thread