On 10/1/11 7:45 AM, Olivier Dussutour wrote:
Hi Matthias, I'm sorry to insist (needless to say I'm a beginner). I read your answer but I wanted this script to a program that would allow students from primary to copy files on all the computers of their room and I found the drag and drop easier than choosing from a list. Hence my interest in your script but if the students could select more than one at once it would be great.
They can do that. In the script Matthias gave, "tList" is just a variable name. You could easily call it "tFiles" or anything else.
Your student would select several files in the Finder or Windows Explorer, then drag them all to your stack at the same time. The dragdrop handler Matthias posted will put all the file paths into the variable, one path per line.
Your own handler can then get each line of tList and work with it.
ON dragdrop put the dragdata["files"] into tList END dragdrop
If I have selected three files in the OS, the above handler would contain something like this in the variable tList:
volume/folder/file1.txt volume/folder/file2.txt volume/folder/file3.txt -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode