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

Python.RunFile

Runs a Python script file.

Component Version macOS Windows Linux Server iOS SDK
Python 14.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Python.RunFile"; PythonRef; Path )   More

Parameters

Parameter Description Example
PythonRef The Python reference number. $python
Path The native path to the file. "/Users/cs/Desktop/test.py"

Result

Returns OK or error.

Description

Runs a Python script file.

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.

See also

Release notes

Blog Entries

This function checks for a license.

Created 22nd August 2024, last changed 22nd August 2024


Python.Run - Python.SetInput