I know this is a "noob" question but I'm kind of stack on it.
I have small application that take all files from given folder and put it to DB ( SQLite ) and than display in Datagrid.
What I'm trying to do is to have the type of file separated like exe, zip, jpg etc... but rom the list I can't just set delimiter to "." and take the last item as there can be dot in name of file, or it don't have .<something> at all so it doesn't work all the time.
I thought that I create array of most used file extensions eg:
Code: Select all
put "exe,rar,html,htm,bin,zip,pdf,mp3,jpg,wmv,avi,tif,ppt,mov,doc,docx,mpg,psd,sitx,sit,cdr,ai,xls,mp4,txt,m4a,rmvb,gif,swf,png,dat,chm,jar,iso,flv,cda,7z,fla,jpeg,3gp,aiff,cdl,vob,xtm,ace,m4p,pst,ttf,bin,ifo,tgz,log,dll,ram,torrent,ses,vcd,bat,sql,cbr,pub" into vExt
I'm stuck on how to create array automatically from the long variable..
I know it should probably look like:
Code: Select all
set itemDel to ","
repeat for each item in vExt
<something to create array>
end repeat

Regards,
Vladimir