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 - Show more from this author
http://www.t-seabird.de |
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.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.