Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
JavaScript.LoadLibrary
Loads the JavaScriptCore library.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScriptWebKit | 13.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JavaScript.LoadLibrary"; Path ) More
Parameters
Parameter | Description | Example |
---|---|---|
Path | The native file path to the library. | "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so" |
Result
Returns OK or error.
Description
Loads the JavaScriptCore library.Does nothing on macOS or iOS since we use the library provided by Apple with the operation system.
You can load JavaScriptCore.dll on Windows here.
Make sure all dependencies are honored and you may use Dependency Walker application to look for dependencies.
You can load libjavascriptcoregtk.so on Linux here.
e.g. "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so" for Linux 64-bit on ARM.
On Linux you need to install a package which includes JavaScriptCore library, e.g. using “sudo apt-get install libjavascriptcoregtk-4.1” command.
Returns OK on success and an error message otherwise.
Examples
Load library on Linux:
Set Variable [ $r ; Value: MBS("JavaScript.LoadLibrary"; "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so") ]
Load library on Windows:
Set Variable [ $r ; Value: MBS( "Process.SetDllDirectory"; "C:\Users\cs\Desktop\test") ]
Set Variable [ $r ; Value: MBS( "JavaScript.LoadLibrary"; "JavaScriptCore.DLL") ]
See also
Release notes
- Version 13.1
- Added JavaScript.LoadLibrary and JavaScript.Available functions.
Blog Entries
- New in MBS FileMaker Plugin 13.1
- Neues MBS Plugin 13.1 für Claris FileMaker
- MBS Plugin 13.1 for Claris FileMaker
- Using JavaScript with WebKit on FileMaker Server on Linux
- MBS FileMaker Plugin, version 13.1pr1
This function checks for a license.
Created 25th January 2023, last changed 8th September 2023
