Re: Grabbing current Safari webpage url
Re: Grabbing current Safari webpage url
- Subject: Re: Grabbing current Safari webpage url
- From: "Ken Ferry" <email@hidden>
- Date: Thu, 6 Mar 2008 21:26:39 -0800
On Thu, Mar 6, 2008 at 7:39 PM, Nick Zitzmann <email@hidden> wrote:
>
> On Mar 6, 2008, at 7:59 PM, Steve Sheets wrote:
>
> > 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.
The developer might have been making a distinction between Apple
Events and AppleScript.
Scripting Bridge, for example, would allow you to pull this
information from Safari without using AppleScript. AppleScript and
the Scripting Bridge use the same basic mechanism to talk to Safari,
which is Apple Events.
I don't think there's much reason to avoid using Apple Events in some
form for this task. Seems well suited.
-Ken
_______________________________________________
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