• 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: Grabbing current Safari webpage url
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grabbing current Safari webpage url


  • Subject: Re: Grabbing current Safari webpage url
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 6 Mar 2008 20:39:53 -0700


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 (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: Grabbing current Safari webpage url
      • From: "Ken Ferry" <email@hidden>
References: 
 >Grabbing current Safari webpage url (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Intel mac required for iPhone development
  • Next by Date: GetMonitorFromWindow
  • Previous by thread: Grabbing current Safari webpage url
  • Next by thread: Re: Grabbing current Safari webpage url
  • Index(es):
    • Date
    • Thread