Problem getting current url from Apple's HelpViewer
Problem getting current url from Apple's HelpViewer
- Subject: Problem getting current url from Apple's HelpViewer
- From: Zack Jarrett <email@hidden>
- Date: Fri, 18 Feb 2011 13:03:50 -0700
Hey all,
I'm having some trouble with Help Viewer. I'm trying to QA the help on an application and need to be able to validate that upon clicking various help icons in the app the correct help content is displayed. I'd like to do this by asking HelpViewer for its current URL but nothing gets returned by that.
I'm using Snow Leopard (10.6.6) and HelpViewer version 5.0.3.
What I'm doing is this:
tell application "HelpViewer"
get current url
end tell
That doesn't return anything. Even trying the System Events route, as follows, results in nothing being returned when asking for the value of attribute AXURL.
tell application "System Events"
tell process "HelpViewer"
set frontmost to true
set webarea to UI element 1 of scroll area 1 of window 1
get value of attribute "AXURL" of webarea
end tell
end tell
There was a discussion on-list back in May 2010 regarding this. Does anyone have a clever mechanism for getting the URL of the currently displayed help? Perhaps I'm just doing something wrong and someone can point out what that is.
Thanks for your help,
Zack _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden