Dragging folder to a field under linux adds "file://"beforethefolder
J. Landman Gay
jacque at hyperactivesw.com
Sun Oct 2 12:25:51 EDT 2011
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:
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode