• 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: frontmost document window (of all running apps)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Re: frontmost document window (of all running apps)?
      • From: b UND d <email@hidden>
References: 
 >frontmost document window (of all running apps)? (From: b UND d <email@hidden>)

  • Prev by Date: Re: objc_msgSend problems on x86
  • Next by Date: Re: Objective-C++, class scope constants, name conflicts
  • Previous by thread: frontmost document window (of all running apps)?
  • Next by thread: Re: Re: frontmost document window (of all running apps)?
  • Index(es):
    • Date
    • Thread