• 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: grep 2.7 & linked-images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep 2.7 & linked-images


  • Subject: Re: grep 2.7 & linked-images
  • From: Skeeve <email@hidden>
  • Date: Mon, 03 Jan 2011 11:22:21 +0100

As I always say: Go for perl ;)
# Grab linked-images
set yourURL to quoted form of "http://members.aceweb.com/randsautos/photogallery/ferrari/enzo/"

set cmdStr to "curl -L --user-agent 'Opera/9.70 (Linux ppc64 ; U; en) Presto/2.2.1' " & yourURL & " | /usr/bin/perl -ne 'print qq($1\\n) if /(<a\\s+href\\b[^>]+\\.jpg[^>]*>)/i'"


do shell script cmdStr


 _______________________________________________
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: 
 >grep 2.7 & linked-images (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: How to do a goto with Applescript?
  • Next by Date: Re: parsing the results of last night's headache
  • Previous by thread: Re: grep 2.7 & linked-images
  • Next by thread: Re: grep 2.7 & linked-images
  • Index(es):
    • Date
    • Thread