In fact, you are right. It does work. The input file was corrupted by
text edit. when I opened and saved it back out with bbedit and ran it
again, it worked great! Thanks a zillion. I thank you, my jabberwocky
thanks you.
Well, my braiin is almost dry. time to go put it back in and see how it
works now that it's been washed.
*Sniff-sniff*.
mmmm peppermint.
Joshua
In article <2007083004334584946-cfnzrpu@[EMAIL PROTECTED]
>,
J. Stewart <cfnzrpu@[EMAIL PROTECTED]
> wrote:
> On 2007-08-29 22:53:54 -0400, Joshua Whalen <joshuafwhalen@[EMAIL PROTECTED]
>
said:
>
> > did it work for you? maybe there's something wrong on this end with my
> > computer or something. Thanks for the effort, though. Still gotta
wring
> > the suds out of my brain. Thing takes FOREVER to dry. Permanent press,
> > dontcha know.
>
> Yes it worked on the sample you posted. here's what it yields in the
> event log -
>
> (*Mydate = Tuesday, August 28, 2007 1:14:00 PM
> MyShow = clash
> MyRun = 638.566666666667
>
> *)
> (*Mydate = Tuesday, August 28, 2007 1:18:00 PM
> MyShow = Frida_Hyvonen
> MyRun = 31.1
>
> *)
> (*Mydate = Tuesday, August 28, 2007 1:20:00 PM
> MyShow = bjork
> MyRun = 183.716666666667
>
> *)
> (*Mydate = Tuesday, August 28, 2007 1:22:00 PM
> MyShow = reggae
> MyRun = 121.833333333333
>
> *)
>
> There are a some long lines that may have wrapped. Here's a re-post
> with those lines adjusted.
>
> --> Cut <--
> set MyJabberwocky to (every paragraph of ¬
> (read file "ibook:Users:joshua:Desktop:ShowTextTest.txt"))
>
> repeat with aLine in MyJabberwocky
> set {oldDelims, my text item delimiters} to {my text item delimiters,
{";"}}
> set MyStuff to every text item of (contents of aLine)
> set my text item delimiters to oldDelims
> set {Mydate, myShow, myRun} to {item 1 of MyStuff, ¬
> item 2 of MyStuff, item 3 of MyStuff}
> log "Mydate = " & Mydate & return & "MyShow = " & ¬
> myShow & return & "MyRun = " & myRun & return & return
> end repeat
> --> Cut <--


|