I am making a small utility that creates a file in the user's directory, and creates subdirectories in that folder, named Documents, Audio, Video, Photos, etc. I have that part done. Then, however, I want it to go through ALL the files on the desktop, one by one, and move them to the appropriate folder, ie:
Is there any way to make a script chose a file in a folder, and to tell the extention? PLEASE HELP ME!!! :apple
Code:
if file "fileA" is of type "pdf" or "doc" or "pages"
Move file "fileA" to "stuff"
end if