Two different script questions. (File deleting/file transferring)

Hello!

I don’t know anything about AppleScript, but I would like to use it for some things.

First, what kind of script can I use to automatically move the files inside a specified folder (not the folder itself) into the trash? I’ve found a website earlier (I deleted my History since then so I can’t retreive it) that had a script that does that and then empties the trash, but it did not work.

Second, what kind of script can I use to automatically transfer specifed folders into an external hard drive?

Thank you for your help!

Hi Lupin

Try this for moving files to the trash.

set the_files to choose file with multiple selections allowed without invisibles
tell application "Finder"
	move the_files to the trash
end tell

there may be better or easier ways to do this, but this does work it won’t empty the trash however!