i know it's possible to launch an app with NSWorkspace, but i'd like to know how i can look for an app that is currently active. Something like:
???
Code:
NSWorkspace * ws = [NSWorkspace sharedWorkspace];
if ([ws launchedApplications.Safari])
{
NSLog (@"Safari Is Running");
}
else
{
NSLog (@"Safari Is Not Running");
}
???