Re: Getting every link from a webpage in explorer
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.