Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frontmost document window (of all running apps)?



You can use NSWorkspace to get a dictionary of data about the frontmost application.

NSDictionary * app = [[NSWorkspace sharedWorkspace]activeApplication];

As for the path of a document I'm not sure but I think I might have seen something in the Apple Events programing guide.

For a monitoring app idea (automated time tracking) I am looking for a solution to find out what's the frontmost (focus) document window of all running applications (with document name/path or at least the title of that window if possible).

Is there any way to do this? ( applescript is probably no solution since not all of the apps are scriptable).


Many thanks in advance for your ideas


Dominik

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/omar% 40roflsoftware.com


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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >frontmost document window (of all running apps)? (From: b UND d <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.