0 Replies Latest reply on Dec 11, 2012 7:14 PM by bookalaka_1

    Apple Script Delete File

    bookalaka_1

      Title

      Apple Script Delete File

      Post

           Good Day,

           I would like to delete a file after I have imported the information from a daily download to drop box. In reading several other posts it seems not that difficult however I have not been able to get it to work. One of the posts has this formula

      tell application "Finder"
           delete file "path:to:file"
           empty trash
      end tell
      tell application "Whatever" to activate

           I have not been successful with even the simplest of paths always getting an error. I am on os 1o.6.8 with FM11 advanced

           the file path to delete is "MyHD/Bookalaka/Dropbox/Downloads/Wine_Log2012.xls"

           I have also tried a test file

           tell application "Finder"
               delete file "MyHD/Desktop/test.fp7"
               empty trash
           end tell
            

           Thanks for the help.