I'm a complete livecode begginer so the solution is probably something incredibly simple. What i'm trying to do is read some text from a text file on my desktop (MacBook Pro running Yosemite) into a text field by pressing a button. I have included a screenshot with some code i've been trying, the card I've been working from and you can see on the right hand side the "mydata.txt but nothing has been working and no errors have been showing up when I test.
Here is some of the code I have been trying
Code: Select all
on mouseUp
//put url "MacintoshHD/Users/Alistair/Desktop/mydata.txt" into field "test"
//put URL specialFolderPath("desktop") & /myData.txt into field "test"
put url "/Macintosh_HD/Users/Alistair/Desktop/myData.txt" into variable
put variable into field "test"
end mouseUp
Any help is greatly appreciated
Alistair