>From the man page you can do something like this: lsof -F | grep MyApp
Excerpt from the man page of lsof: OUTPUT FOR OTHER PROGRAMS When the -F option is specified, lsof produces output that is suitable for processing by another program - e.g, an awk or Perl script, or a C program. Run the command in a terminal window and see what your output is. Thanks, Arvin On 6/2/11 2:50 PM, "Abhinav K Tyagi" <abhityag...@gmail.com> 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/arvin.bhatnagar%40verizon >.com > >This email sent to arvin.bhatna...@verizon.com _______________________________________________ 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