• 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: Suggestions for modifying read_parse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Suggestions for modifying read_parse


  • Subject: re: Suggestions for modifying read_parse
  • From: Charles Arthur <email@hidden>
  • Date: Tue, 6 Jul 2004 11:25:55 +0100

On Mon, 5 Jul 2004 22:00:31 -0600 "Gregory J. Smith" <email@hidden>
wrote:

>Apple has an example applescript for parsing a HTML file.
><http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.04.htm> (see
>read_parse(this_file, opening_tag, closing_tag, contents_only)). I
>would like to modify it to parse a string rather than a file but
>otherwise do the same thing. Could someone on the list provide some
>help or suggest an alternative?

Really you just want to remove the bits where it's reading from the file -
all the "open for access", "close access" stuff. That would be the
"learning" method.

Alternatively, and much easier, would be to download Tex-Edit Plus, which
comes with some splendid scripts, including a very good one for removing
HTML. Google knows where it lives. This would be the quick method, though
by comparing the two scripts you might get some ideas of how to alter
read_parse.

Charles
--
----------------------------
http://www.ukclimbing.com : 1200+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
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: strange behaviour in search for \n
  • Next by Date: Re: Suggestions for modifying read_parse
  • Previous by thread: Suggestions for modifying read_parse
  • Next by thread: Re: Suggestions for modifying read_parse
  • Index(es):
    • Date
    • Thread