I am trying to discover if a Finder object dropped onto a livecode button is a "true file" i.e. a valid path and name to data or an alias. I thought I could use
Code: Select all
on dragDrop
set the cursor to busy
put the dragdata["Files"] into tFiles -- also tried "text"
put tFiles
repeat for each line tFile in tFiles
-- get the filetype of tFile -- does not work
-- put it into tType
put aliasReference (tFile) into tTheFile
put the result into tResult
put it into tIt
put "Alias : " && tFile && "resolves to : " && tTheFile into field "debug"
end repeat
pass dragdrop
end dragDrop
Thanks,
S