I am trying to import about 100 pictures from a folder and displaying them in thumbnail size in a datagrid.
I edited the template stack and put in this codes.
In the button:
Code: Select all
put specialfolderpath("desktop") &"/images" into tfolder
set the defaultfolder to tfolder
put the files into theDataA
filter theDataA without ".DS_Store"
repeat for each line xline in theDataA
put quote & tfolder & "/" & xLine & quote & return into theDataA[xline]["Image URL"]
end repeat
Code: Select all
on FillInData pDataArray
set the filename of image "image" of me to pDataArray["Image URL"]
end FillInData
Thank you and any help will be appreciated!
Cheers,
Gautami