• 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: James Montgomerie <email@hidden>
  • Date: Thu, 02 Jun 2011 12:00:29 -0700

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
> 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:
>
> 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

References: 
 >Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)
 >Re: Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)

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