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

Scripting Interarchy (was Re: Extract URLs using TIDs (how to?))


  • Subject: Scripting Interarchy (was Re: Extract URLs using TIDs (how to?))
  • From: List Kreme <email@hidden>
  • Date: Sun, 27 May 2001 21:36:50 -0600

On 25/05/2001 at 20:49 -0600, List Kreme said:

Posted this a couple of days ago and have seen no replies, so afraid it got
lost ins a dead thread. If not, please ignore this post. :)

>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. :)


--


References: 
 >Extract URLs using TIDs (how to?) (From: Charles Arthur <email@hidden>)
 >Re: Extract URLs using TIDs (how to?) (From: "asa" <email@hidden>)
 >Re: Extract URLs using TIDs (how to?) (From: List Kreme <email@hidden>)

  • Prev by Date: Re: file kind
  • Next by Date: Help with choice of tool(s)
  • Previous by thread: Re: Extract URLs using TIDs (how to?)
  • Next by thread: Re: Extract URLs using TIDs (how to?)
  • Index(es):
    • Date
    • Thread