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.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

Plugin.Path

Queries the native file path to the plugin.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Plugin 3.3 Yes Yes Yes Yes Yes

MBS( "Plugin.Path" )

Parameters

none

Result

Returns path or error.

Description

Queries the native file path to the plugin.
On FileMaker Cloud this returns a path like "/opt/FileMaker/FileMaker Server/Database Server/Extensions/MBS.fmx".
On Mac OS X this points usually to the application folder, e.g. "/Applications/FileMaker Pro 16 Advanced/Extensions/MBS.fmplugin"

Examples

Write DynaPDF library to same folder as plugin:

Goto Layout [ “MBS Update” (MBS Update) ; Animation: None ]
Go to Record/Query/Page [ First ]
Set Variable [ $folder ; Value: MBS( "Plugin.Path" ) ]
Set Variable [ $folder ; Value: MBS( "Path.RemoveLastPathComponent"; $folder ) ]
Set Variable [ $path ; Value: MBS( "Path.AddPathComponent"; $folder; "dynapdf.dylib" ) ]
Set Variable [ $Plat ; Value: MBS("Files.MoveToTrash"; $path) ]
Set Variable [ $Plat ; Value: MBS("Files.WriteFile"; MBS Update::dynaPdfMac; $path) ]

See also


Plugin.PNGVersion   -   Plugin.ScriptStepParameter

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins