• 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 every link from a webpage in explorer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting every link from a webpage in explorer


  • Subject: Re: Getting every link from a webpage in explorer
  • From: JJ <email@hidden>
  • Date: Sun, 28 Apr 2002 11:53:53 +0200

> I used this javaScriptCode and I'am getting every link but when I try to
> copy the URL's to iGetter I get an archive, I need the copy every single URL
> to iGetter.
>
> Is there also a way to get every link from the links I'am getting with this
> javaScriptCode
>
> I mean
> Webpage
> Link 1
> -> Link 1
> -> Link 2
> -> Link 3
> Link 2
> -> Link 1
> -> Link 2
> -> Link 3
> Link 3
> -> Link 1
> -> Link 2
> -> Link 3
>
>
>
> set javaScriptCode to "numLinks=document.links.length;
> linkList='';for (i=0; i<numLinks; i++) {
> linkList= linkList + document.links[i] + '\\r';}"
>
Hi, Bjorn:

I don't know what you want exactly, but I'll try to answer to "I need copy
every single URL to iGetter".

This is just the js code I work with in MSIE Library. You only need parse
the text you receive from "do script" with a simple TID routine:

__________________
set theText_With_Links to "http://www.anything.com/archive.sit
http://second.link/page.html";

set AppleScript's text item delimiters to return
-- if this is your link-delimiter
set splitted_links to every text item of theText_With_Links
set AppleScript's text item delimiters to {""}

-- Now, you have a list of links:
repeat with a_ref_to_a_link in splitted_links
tell application "iGetter" to GetURL a_ref_to_a_link
end
__________________

Also, iGetter itself provides a contextual menu IE compatible wich will
allow you "Download All with iGetter" (if you wish only do this
semi-manually)

JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Owner/User Name in OSX
  • Next by Date: Re: Exponential notation [was: Re: How to calculate/process thi
  • Previous by thread: Getting every link from a webpage in explorer
  • Next by thread: AppleScript and MS-SQL
  • Index(es):
    • Date
    • Thread