Can't make ... into type number
A script of mine contains:
set duration to (word -2 of (do shell script "/usr/bin/afinfo " & eachFile & "|grep duration")) as number
Where eachFile is a .m4r file that the user has been asked to select. I've always been able to execute this script without error, but some others who have used it report that they get an error message such as: "Can't make 10.94778 into type number." I assume it has to do with the above line, but I cannot think of how to fix the issue, especially since I am unable to reproduce it.
MacBook Pro with Retina display-OTHER, OS X Mavericks (10.9.5), 15 in, Late 2013, 256GB, 8GB RAM