Talk About Network

Google




Programming > Applescript > Re: no brainer
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 8 Topic 1500 of 1697
Post > Topic >>

Re: no brainer

by Joshua Whalen <joshuafwhalen@[EMAIL PROTECTED] > Aug 30, 2007 at 01:06 PM

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 <--
 




 8 Posts in Topic:
no brainer
Joshua Whalen <joshuaf  2007-08-29 17:01:00 
Re: no brainer
J. Stewart <cfnzrpu@[E  2007-08-29 17:43:05 
Re: no brainer
Joshua Whalen <joshuaf  2007-08-29 22:53:54 
Private Message
   2007-08-29 20:24:17 
Private Message
   2007-08-30 13:07:23 
Re: no brainer
J. Stewart <cfnzrpu@[E  2007-08-30 04:33:45 
Re: no brainer
Joshua Whalen <joshuaf  2007-08-30 13:06:22 
Re: no brainer
Joshua Whalen <joshuaf  2007-08-30 13:04:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Mon Jan 5 17:27:22 PST 2009.