Re: frontmost document window (of all running apps)?
Re: frontmost document window (of all running apps)?
- Subject: Re: frontmost document window (of all running apps)?
- From: Omar Qazi <email@hidden>
- Date: Fri, 10 Feb 2006 23:33:05 -0800
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:
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:
This email sent to email@hidden