"Put URL" command can't find my file?
Posted: Fri Jan 16, 2009 1:51 am
Hi all!
I'm trying to get data from My_file.txt , which is in the same folder as my Rev stack. Here's what I wrote:
on mouseUp
put URL "file: My_file.txt" into theFile
put theFile into field "heresMyFile"
end mouseUp
Field "heresMyFile" comes up empty. When I tried to debug by saying:
put URL "My_file.txt" into theFile
put the first word of "theFile" into message
Message gives me empty, although I have opened My_file.txt and seen that it does indeed contain text.
Since it is in the same folder as my Rev project, I didn't think I had to state the entire file path, so I'm not sure what is wrong!
I'm grateful for any help! Thanks!
I'm trying to get data from My_file.txt , which is in the same folder as my Rev stack. Here's what I wrote:
on mouseUp
put URL "file: My_file.txt" into theFile
put theFile into field "heresMyFile"
end mouseUp
Field "heresMyFile" comes up empty. When I tried to debug by saying:
put URL "My_file.txt" into theFile
put the first word of "theFile" into message
Message gives me empty, although I have opened My_file.txt and seen that it does indeed contain text.
Since it is in the same folder as my Rev project, I didn't think I had to state the entire file path, so I'm not sure what is wrong!
I'm grateful for any help! Thanks!