Re: problem w/ text item delimiters
Re: problem w/ text item delimiters
- Subject: Re: problem w/ text item delimiters
- From: "Gary (Lists)" <email@hidden>
- Date: Mon, 05 Feb 2007 20:18:34 -0500
"tom wible" wrote:
> Why do...
> a) you want a list
>> so i can use that nifty text item delimiters trick to avoid having to put
>> newlines everywhere;-)
HTML does not require _any_ new lines to display. You do not need any of
these for building an HTML 'stream'.
> b) you need to "count" parts of a page of markup
>>debug
Not efficient, not useful, a waste of time. How is counting how many
"chunks" of unknown stuff you have related to debugging?
> c) you make a list and then say: set html to (html as string)
>> so i can read
>> the output to see wtf is f.u.;-)
It's much easier (i.e., more human-like) to read a "chunk" of html, rather
than a chunk of html split up by some arbitrary commas.
> d) you need multiple ?!?!?!?!?, in any circumstance of communication?
>> got a
>> response;-)
Ah, yes. My nephew suffers the same misunderstanding regarding "good
attention" and "not good attention". I do understand the impulse, but in
adults this will generally wind up with you being featured on the show
"COPS".
Seriously...
>From what I make of your replies, you have no real need or reason to use a
list to build html, then turn around and cram it back into a string, than
the simple fact that you went down a wrong turn when thinking through your
project.
In my own experience, this list is not an ideal source for actually learning
the mechanics of writing compiled AppleScript. That is to say that, while
the experts of all experts are here, there are more efficient ways to learn
to "code" (Matt N.'s book, for example). Coding stuff can always be at
hand, like a desk dictionary, or thesaurus, for example.
But...
This list is _the best_ place to learn about how to approach processes, how
to structure well-written code, how to think through multiple options for
approaching a project, or even get direct "did that...didn't work"
knowledge.
Perhaps this is a pedagogical issue, but I believe I could argue the case
well: You are going all wrong.
If you really (really) feel like you want to put html into discreet
(arbitrary?) chunks, then you can use the Satimage osax XMLLib. I know this
because I've tried it. Even on non-XML html files, the tool will pull out
the content of html tag elements (your <tr>, <td> and so on.)
But...you'll do what you want, even if it's weird. And I support that, too.
--
Gary
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden