Send File to Trash command

Hello,

This is my first post I am new to applescripting but I do work with Filemaker a bit. I do a mundane import everyday and after the import I would like to script the excel file to be thrown in the trash. This seems like it should be an easy script but I have not seen any reference to this process? can someone direct me to where I might find examples of this use.

Thanks for help!

Put this in a “Perform AppleScript” script step in your FMP script.


--enter the path to the Excel file
set theFile to "enter_path_here" as alias
tell application "Finder" to delete theFile

Regards,

Craig