This is indeed impossible to do generally. If you have /specific/ apps in mind (rather than 'any application'), it might be possible to tell this on an app-by-app basis at a higher level.
For example, for Safari, you could use Applescript to get the URLs of the open windows: tell application "Safari" get the URL of the document of every window end tell The way to do this will be different for every app - you'll need to work out how to do it for each app separately. Jamie. On 2 Jun 2011, at 11:50, Abhinav K Tyagi wrote: > Hi list members, > I have searched for and have seen "lsof" command can be used and the output > can be then filtered out. > Although i can filter the information based on the extensions of files but > how can i get the information if the opened file is a url. The best case can > be of an audio stream or something like that. > > I am not getting way hoe to do it. > > Thanks > Abhinav K Tyagi > abhityag...@gmail.com > --------------------------------------------------------------- > > On Jun 2, 2011, at 11:48 PM, Abhinav K Tyagi wrote: > >> Hi, >> >> Is there any method to know what files are opened by any application? >> >> Thanks >> Abhinav K Tyagi >> abhityag...@gmail.com >> --------------------------------------------------------------- >> * Composed using Mac Mail. >> > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/jamie%40montgomerie.net > > This email sent to ja...@montgomerie.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com