• 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: Accessing information from applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing information from applications


  • Subject: Re: Accessing information from applications
  • From: "Bhatnagar, Arvin" <email@hidden>
  • Date: Thu, 02 Jun 2011 14:56:41 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Accessing information from applications

>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" <email@hidden> 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
>email@hidden
>---------------------------------------------------------------
>
>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
>> email@hidden
>> ---------------------------------------------------------------
>> * Composed using Mac Mail.
>>
>
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>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:
>.com
>
>This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Accessing information from applications
      • From: Abhinav K Tyagi <email@hidden>
    • Re: Accessing information from applications
      • From: "Bhatnagar, Arvin" <email@hidden>
References: 
 >Re: Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)

  • Prev by Date: Re: Code style (was: Notify With Parameters)
  • Next by Date: Re: Code style (was: Notify With Parameters)
  • Previous by thread: Re: Accessing information from applications
  • Next by thread: Re: Accessing information from applications
  • Index(es):
    • Date
    • Thread