Applescript to read data from text file
Hello all, I am writing an Applescript to read a file and put that file's contents into a variable. However, when I use the applescript command "read", I get the error:
The text file reads "4.65". I need to extract that number to show up in a dialog box. This is the code I have so far.
set milefile to ("Macintosh HD:Users:RyanSiebecker:Documents:Scripts:Source-Files:Running-Files:milefile.tx t")
set theFileContents to (readfilemilefile)
I am stuck and I cannot find any other way to do this.
As always, any help is appreciated.
Thanks, Ryan
MacBook Pro, OS X Mavericks (10.9.1)