Jump to content

songcrates

Member
  • Posts

    3
  • Joined

  • Last visited

songcrates's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. hey thanks anyway. In case you are interested, I've googled a solution: you can use an app comes with xcode called "accessibility inspector". :-)
  2. It's perfect! Many thanks. Can I ask about how do you know that the url bar is the gourp 2 of toolbar 1? If I want to know more, where can I get the documents or instructions include these information(which component is which)?
  3. I use AppleScript to get this job done. Here's how I try to get the URL: tell application "Safari" set _URL to URL of current tab of front window end tell For most of the page who successfully opened, I got the right URL. But for those who failed to open, which state "Failed to open page" as the tab name and "Safari Can't Find the Server" in the page content, the URL is not the real website address. What I got is: file:///Applications/Safari.app/Contents/Resources/ So how can I get what is really in the Safari address bar when the page failed to open? Thanks guys.
×
×
  • Create New...