• 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: Extract URLs using TIDs (how to?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract URLs using TIDs (how to?)


  • Subject: Re: Extract URLs using TIDs (how to?)
  • From: List Kreme <email@hidden>
  • Date: Fri, 25 May 2001 20:49:18 -0600

On 26/05/2001 at 10:48 +1000, asa said:
>Did you know that Interarchy performs this function. It returns a list of
>URLs from a page and it is easy to script.

Interarchy appears to have a great dictionary and I think it can do exactly
what I want it to do, but I am stumbling at the starting gates...

what I want Interarchy to do is go to a url I give it and grab two things,
the first is a file that matches a specific set of criteria (like `AA.*jpg`
in regex speak) and a link named "Next" for example. Then follow the link
"Next" and do the same thing until there is no link named "Next."

Something like this (but this does not work, obviously)

on run
set StartingURL to "http://www.mycompany.com";
my SuckTheSite(StartingURL)
end

on SuckTheSite(TheURL)
tell application "Interarchy 4.1" --Runing under OS X if it matters
activate
set TheFiles to url TheURL -- That fails. How do I get the file listing?
set theJPGSet to every item of TheFiles whose name ends with "jpg"
set theJPG to every item of theJPGset whose name starts with "AA"
display dialog item 1 of theJPG -- should be one item
try
set NextLink to item of TheFiles whose name is "Next"
on error -- No more Next
return
end
my SuckTheSite(NextLink)
end tell
end

The pseudo-script sure LOOKS nice. Too bad it doesn't work. :)

--


  • Follow-Ups:
    • Scripting Interarchy (was Re: Extract URLs using TIDs (how to?))
      • From: List Kreme <email@hidden>
References: 
 >Extract URLs using TIDs (how to?) (From: Charles Arthur <email@hidden>)
 >Re: Extract URLs using TIDs (how to?) (From: "asa" <email@hidden>)

  • Prev by Date: Re: Extract URLs using TIDs (how to?)
  • Next by Date: Re: Extract URLs using TIDs (how to?)
  • Previous by thread: Re: Extract URLs using TIDs (how to?)
  • Next by thread: Scripting Interarchy (was Re: Extract URLs using TIDs (how to?))
  • Index(es):
    • Date
    • Thread