I'm trying to learn how to create a file from within RunRev and store it to a location selected by the user. This is the code I've written so far.
Code: Select all
on mouseUp
answer folder "What is the folder name?" titled "Folder Name"
put it into tFolder
ask "Enter a file name" titled "File name"
put it into tFileName
put "/" before tFileName
put tFolder&&tFileName into tOpenThis
open file tOpenThis for write
write "Testing, testing" to file tOpenFile
close file tOpenFile
end mouseUp
I'm hoping that you can suggest what I might be missing. Thanks! -Matt