Dragged and dropped file paths not plain text?
Posted: Tue Feb 09, 2016 1:10 pm
I'm working on OS X and I've created a field in a stack which accepts files being dragged into it. The field then displays the file paths. The code is this:
However, the field value does not seem to be what I'm expecting. I cannot use a repeat loop to get all the lines of the field and do something which each of the files.
Suppose the line 1 in the field reads:
/Users/JohnDoe/myfile.txt
Then when I use
I just get "/", the first character.
I'm on Livecode 7 now, I'm pretty sure this was different before... Is there an easy way to convert the field value back to normal text?
Code: Select all
on dragEnter
set acceptDrop to true
end dragEnter
on dragDrop
put the dragData into me
pass dragDrop
end dragDrop
Suppose the line 1 in the field reads:
/Users/JohnDoe/myfile.txt
Then when I use
Code: Select all
answer line 1 of field "Field"
I just get "/", the first character.
I'm on Livecode 7 now, I'm pretty sure this was different before... Is there an easy way to convert the field value back to normal text?