Brian Dunning's FileMaker Custom Functions

AS_File_Remove ( myPath ; myOptions )

remove files from harddisk using AppleScript with a shell command (Apple only)

  Average rating: 4.4 (31 votes) Log in to vote

Thomas Siebert   Thomas Siebert

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_File_Remove ( Get ( DesktopPath ) & "testfile.csv" ; "" ) ]
  Sample output:
removing the file "testfile.csv" from the desktop

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

(Apple only)

remove a file from the harddisc.

U shall use a standard POSIX path or a common FileMaker paths like:
"filemac:" & Get ( TemporaryPath ) & "file.csv"

The script removes prefixes like "filemac:" or the name of the start volume like "/Macintosh HD/" automatically from a given path.

Use the ScriptStep "Perform AppleScript" using the option "Calculated AppleScript"
You also shall use "Perform AppleScript" directly from a button.



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.