Skip links

FileMaker quick tip: Delete files without a plugin.

FileMaker training, courses, coaching

FileMaker quick tip: Delete file without pluginWhile looking for a solution to remove a file from the local or network drive after importing it, I came across an interesting solution on how to do this in FileMaker without using an additional plugin. To delete a file using a script command, the file name must first be converted into a Variable e.g. $Filename = "filemac:/Macintosh HD/Users/User/Documents/File.txt" or under Windows for example "$Filename = "filewin:/c:/File.txt". The following command must then be inserted in Scriptmaker to delete the specified file:

Export all field values [""; $Filename]

It is important at this point that no fields are specified during export and that the user must not be inside a field when the script is executed, although this can be prevented in Scriptmaker. Therefore, only specify the variable $Filename as the file in the script command mentioned - the specified file is deleted when the script is executed without dialog.

Leave a comment

  1. So since nobody here has written anything about it yet - it works - thank you!!!

Share this page:

ERP software as flexible as your company.
We will be happy to advise you.

Customizable ERP software for Mac, Windows and iOS.

You are here: FileMaker Quick Tip: Deleting files without a FileMaker plug-in