• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a link from a safari window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a link from a safari window


  • Subject: Re: Getting a link from a safari window
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 23 May 2010 05:51:48 -0400


On May 23, 2010, at 1:08 AM, Tommy Bollman wrote:

Den 22. mai 2010 kl. 23.03 skrev email@hidden:


It would really help my script if I could get the link's URL first. This script will be visiting hundreds of pages, but if I can't determine if it's visited the URL already, it would be 1000s of pages.

I've sent Ed the GUI Scripting solution privately. In summary: using UI Browser or GUI Scripting, get the value of the AXURL attribute of a Safari/WebKit "link" element, instead of getting the value of the link's static text child element (which is the name of the website, not its URL).

--

Bill Cheeseman - email@hidden

 _______________________________________________
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

References: 
 >Getting a link from a safari window (From: "email@hidden" <email@hidden>)
 >Re: Getting a link from a safari window (From: Tommy Bollman <email@hidden>)

  • Prev by Date: Re: UI Scripting
  • Next by Date: Re: UI Scripting
  • Previous by thread: Re: Getting a link from a safari window
  • Next by thread: Re: Getting a link from a safari window
  • Index(es):
    • Date
    • Thread