I’m going to break this into pieces
*can applescript distinguish what type of file it’s dealing with
set File2scan to choose file
file type of (info for File2scan)
*what kind of file it is , so quark files go there, tiffs somewhere else
“Quark files” are by creator type, “tiff” files are by file type. Note the difference that a tiff file can be opened by different apps. Quark is not a file type because file types are four character values “TEXT”, "MP3 ",“JPEG”, “TIFF”. Choosing which to sort by is important. In OS X you could also sort by name extension “.jpg”, “.mpg”, “.tiff”. All these values can be obtained from the “info for” command. Just substitute which one you want for “file type” in the code above.
*does it know that a file is still copying or has finished coping and is now available to be moved?
From “ADD - NEW ITEM ALERT”
Sal Soghoian ©1998 Apple Computer
Folder Action handler is triggered when items are added to the attached folder.
-- THIS PROPERTY IS USED TO INDICATE WHETHER THE SCRIPT CHECKS THE INCOMING FILES FOR COMPLETED TRANSFER
-- SET THIS PROPERTY TO TRUE FOR FOLDERS SHARED VIA FILE SHARING
-- NOTE THAT ITEMS DROPPED IN SHARED FOLDERS WILL HAVE THEIR LABEL SET TO 7
property copy_checks_indicator : false
--The handler is (assuming you set all the variables)
if copy_checks_indicator is true then
-- CHECK THE FILES TO MAKE SURE THEY"RE COMPLETELY AVAILABLE
set the added_items to my check_added_items(the added_items)
if the added_items is {} then return "no vaild items"
end if
But if I were you instead of a folder action, I would do this with a droplet because
*after all the coping is done, ALL files would be MOVED to yet another folder *
Kind of makes it pointless to drop them into the original folder in the first place. Move them here, copy them to, move them again… you sure about that?
With a droplet, you could select your files, drop them, and they would go wherever you direct them via the script. Multiple copies to different folders, whatever.
Post back with comments
SC