Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grabbing current Safari webpage url



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Grabbing current Safari webpage url (From: Steve Sheets <email@hidden>)
 >Re: Grabbing current Safari webpage url (From: Nick Zitzmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.