Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Puts a list of file paths on the clipboard.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Clipboard 5.1 Yes Yes Yes No No

MBS( "Clipboard.SetFiles"; Paths )


Parameter Description Example value
Paths The list of file paths. "C:\Users\Christian\Desktop\Jaguar Aqua Graphite.jpg"


Returns OK or error.


Puts a list of file paths on the clipboard.

For server this will modify the clipboard of the user account running the server app on the server computer and not the clipboard of any client.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.


Put a file path to clipboard on Windows:

MBS("Clipboard.SetFiles"; "C:\Users\Christian\Desktop\test.fmp12")

Put two file paths on clipboard on Windows:

MBS("Clipboard.SetFiles"; "C:\Users\Christian\Desktop\test.fmp12¶C:\Users\Christian\Desktop\Jaguar Aqua Graphite.jpg")

Put a file path on clipboard on Mac:

MBS("Clipboard.SetFiles"; "/Users/cs/Desktop/todo.rtf")

See also

Clipboard.SetFileMakerData   -   Clipboard.SetHTMLText

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins