Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MeLee1991

macrumors newbie
Original poster
May 10, 2010
1
0
What am i doing wrong?
I get this error message: can't make... into type string

I would like to delimit text from some text file (and later extract data from specific position):

set the_file to alias "Macbook:new.txt"
open for access the_file

try
repeat
set the_string to read the_file
set text item delimiters to "--------"
set delimited_text to text items of the_string
display dialog delimited_text
end repeat
on error number -39
close access the_file
end try


Please help.
Ty.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.