On Mar 6, 2008, at 7:59 PM, Steve Sheets wrote:

Is there a way of finding out what is the current topmost webpage being viewed by Safari?

Yes, through AppleScript.

I think I can get this information using Applescript, but one of the developers hinted that he was not using Applescript to do this. Is there an application service or Safari API that passes your application this information?


Mac OS X does not allow applications to get NSWindows or WindowRefs of other applications' windows for obvious security reasons (unless the developer creates a back door via DO), so I don't see how that would be possible.

Nick Zitzmann
<http://www.chronosnet.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 [EMAIL PROTECTED]

Reply via email to