On Thu, Mar 6, 2008 at 7:39 PM, Nick Zitzmann <[EMAIL PROTECTED]> 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 (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]