Brian Dunning's FileMaker Custom Functions

AS_File_Move ( Source_Path ; Target_Path ; myOptions )

move files on Hard disks using AppleScript with a shell command (Apple only)

  Average rating: 4.0 (30 votes) Log in to vote

Thomas Siebert   Thomas Siebert - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_File_Move ( "filemac:" & Get ( DesktopPath ) & "file.csv"; "/Volumes/ExternalHD/MyFolder/" ; "" ) ]
  Sample output:
the file will be moved from desktop to a folder on an external disk

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

(Apple only)

Move a file from one path on the harddisc to another path or to another volume.

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.

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: