Re: Application Activation Problem

2016-05-26 Thread Dave
> On 26 May 2016, at 15:43, Uli Kusterer wrote: > > On 18 May 2016, at 14:25, Dave wrote: >> My curiosity got the better of me and I looked at NSWorkspace again and >> found the activeApplication but it was deprecated in 10.11, however

Re: Application Activation Problem

2016-05-26 Thread Uli Kusterer
On 18 May 2016, at 14:25, Dave wrote: > My curiosity got the better of me and I looked at NSWorkspace again and found > the activeApplication but it was deprecated in 10.11, however when I looked > for closely I found frontmostApplication which is (I think) exactly what

Re: Application Activation Problem

2016-05-26 Thread Uli Kusterer
On 18 May 2016, at 12:44, Dave wrote: > I got side-tracked with some other issues and will be taking another look at > this on Friday and I will certainly have a good look at the available > methods/properties of NSWorkspace, but from memory I don’t think there is a >

Re: Application Activation Problem

2016-05-18 Thread Dave
Hi Again, My curiosity got the better of me and I looked at NSWorkspace again and found the activeApplication but it was deprecated in 10.11, however when I looked for closely I found frontmostApplication which is (I think) exactly what I want! Thanks for the tip. All the Best Dave

Re: Application Activation Problem

2016-05-18 Thread Dave
Hi Uli, I got side-tracked with some other issues and will be taking another look at this on Friday and I will certainly have a good look at the available methods/properties of NSWorkspace, but from memory I don’t think there is a method that returns the currently active application, although

Re: Application Activation Problem

2016-05-17 Thread Uli Kusterer
On 17 May 2016, at 10:34, Dave wrote: >> On 16 May 2016, at 22:17, Jerry Krinock wrote: >> >> Dave, I’ve tried to do stuff similar to this with NSWorkspace, and found it >> to be often frustrating. According to your initial post, you’ve already >>

Re: Application Activation Problem

2016-05-17 Thread Dave
> On 16 May 2016, at 22:17, Jerry Krinock wrote: > > Dave, I’ve tried to do stuff similar to this with NSWorkspace, and found it > to be often frustrating. According to your initial post, you’ve already > tried pretty hard. If lengthening the time delay still does not work

Re: Application Activation Problem

2016-05-16 Thread Jerry Krinock
Dave, I’ve tried to do stuff similar to this with NSWorkspace, and found it to be often frustrating. According to your initial post, you’ve already tried pretty hard. If lengthening the time delay still does not work good enough for you, then, • If the apps that you want to cycle through

Re: Application Activation Problem

2016-05-16 Thread Dave
> On 14 May 2016, at 13:45, Ken Thomases wrote: > > On May 13, 2016, at 10:21 AM, Dave wrote: >> >> That’s actually what I am doing. I monitor >> NSWorkspaceApplicationWllLaunchNotification, >> NSWorkspaceApplicatioDidLaunchNotification and

Re: Application Activation Problem

2016-05-14 Thread dangerwillrobinsondanger
Don't be so quick to judge it out of context. Some would want a workspace launcher kind of utility app. It's just not well supported unless you own the apps themselves. Sent from my iPhone > On May 14, 2016, at 9:45 PM, Ken Thomases wrote: > >> On May 13, 2016, at 10:21

Re: Application Activation Problem

2016-05-14 Thread Ken Thomases
On May 13, 2016, at 10:21 AM, Dave wrote: > > That’s actually what I am doing. I monitor > NSWorkspaceApplicationWllLaunchNotification, > NSWorkspaceApplicatioDidLaunchNotification and > NSWorkspaceDidActivateApplicationNotification (as well as others). For each >

Re: Application Activation Problem

2016-05-13 Thread Kyle Sluder
On Fri, May 13, 2016, at 10:21 AM, Dave wrote: > Hi, > > > You might consider subscribing to > > NSWorkspaceDidActivateApplicationNotification and cycling to the next > > app in the list upon receipt, but the best you can do is best-effort. > > > > --Kyle > > > > That’s actually what I am

Re: Application Activation Problem

2016-05-13 Thread Dave
Hi, > You might consider subscribing to > NSWorkspaceDidActivateApplicationNotification and cycling to the next > app in the list upon receipt, but the best you can do is best-effort. > > --Kyle > That’s actually what I am doing. I monitor NSWorkspaceApplicationWllLaunchNotification,

Re: Application Activation Problem

2016-05-13 Thread Kyle Sluder
On Fri, May 13, 2016, at 04:46 AM, Dave wrote: > Hi All, > > I’m using: > > [myRunningApp activateWithOptions:(NSApplicationActivateAllWindows | > NSApplicationActivateIgnoringOtherApps)]; > > To activate an Application. Is there any way to tell when the Application > is actually active? I have

Application Activation Problem

2016-05-13 Thread Dave
Hi All, I’m using: [myRunningApp activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)]; To activate an Application. Is there any way to tell when the Application is actually active? I have the need to cycle through an Array of App Bundle IDs and make