Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

FM.AllowFileDragDrop

Installs fix for file drag and drop problem.

Component Version macOS Windows Linux Server iOS SDK
FM 7.0 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "FM.AllowFileDragDrop"; Enable { ; TempFolder; DeleteTempFiles } )   More

Parameters

Parameter Description Example Flags
Enable Whether to enable or disable.
Pass 1 to enbale or 0 to disable.
Default if no parameter is given is enable.
1
TempFolder Available in MBS FileMaker Plugin 8.1 or newer.
The native path of temp folder to use.
Leave empty for standard one.
MBS("Folders.UserDesktop") Optional
DeleteTempFiles Available in MBS FileMaker Plugin 8.1 or newer.
Whether to delete temp files.
Default is 1 to delete last file them when next file is to be dragged.
1 Optional

Result

Returns OK or error.

Description

Installs fix for file drag and drop problem.
When we have a container in FileMaker with e.g. a zip file and drag the file content to the Finder, nothing happens. This plugin functions installs some code which intercepts those file drags and makes them work.
Internally the file data is obtained and written to temporary folder. The finder can copy the file there and our plugin can later delete the temp file.

Works better with non interactive containers.
This does not change drag & drop of images.

With plugin version 7.1, PDF drag and drop is also supported.

Examples

Allow file drops from container to Finder:

Set Variable [$r; Value:MBS( "FM.AllowFileDragDrop" )]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 8th January 2017, last changed 26th January 2018


Events.defaultCalendarForNewReminders - FM.Argument