Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
Statistic
FMM
Blog
Path.FileMakerPathToNativePath
Converts a FileMaker path useful for "filemac:" and "filewin:" path specification to a native path.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
Path | 2.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
path | The FileMaker file path. | "/Macintosh HD/Users/test/Desktop/picture.jpg" | |
PassThroughNativePath | Available in MBS FileMaker Plugin 11.0 or newer. Whether to pass through a native path directly and avoid conversion, if the path is valid already. Default is 1 to enable this. |
1 | Optional |
Result
Returns the native path.
Description
Converts a FileMaker path useful for "filemac:" and "filewin:" path specification to a native path.The difference between a native path and a FileMaker path on Mac is, that FileMaker expects to have the Disk Name in front followed by the rest of the path. macOS functions require paths from the root disk to start without volume name. Other disks have paths starting with "/Volumes/name".
This function does not work for relative paths.
Examples
Convert path to native path:
MBS( "Path.FileMakerPathToNativePath"; "/Macintosh HD/Users/test/Desktop/picture.jpg")
See also
- WindowsUserNotification.SetImagePath
- WordFile.OpenFile
- X509.ReadFromFile
- XL.Book.AddPictureFile
- XL.Book.SaveToFile
- XL.Initialize
- XML.ValidateFile
- ZipFile.CRCFile
- ZipFile.Open
- ZipFile.WriteFile
Example Databases
- DynaPDF/Form/Form
- Files/FileMakerPath to NativePath
- Network/ServerSocket/ServerSocket from Webviewer/ServerSocket from Webviewer
- WebViewer/Calendar/Calendar
- WebViewer/Javascript calls Filemaker Script/ServerSocket from Webviewer/ServerSocket from Webviewer
- WebViewer/MethodDraw SVG Editor/MethodDraw
Blog Entries
- MBS FileMaker Plugin, version 11.0pr6
- Save PDF to container in FileMaker
- Using TLS when connecting to MySQL server
- PDF Forms with MBS Plugin
- MBS FileMaker Plugin, version 7.6pr1
- MBS FileMaker Plugin, version 7.5pr8
- Restart FileMaker with same database
- MBS Filemaker Plugin, version 4.4pr9
- MBS Filemaker Plugin, version 3.3pr5
- MBS Filemaker Plugin, version 3.0pr1
FileMaker Magazin
Release notes
- Version 11.0
- Added PassThroughNativePath flag to Path.FileMakerPathToNativePath function to disable the pass through of valid paths.
- Version 8.0
- Fixed an issue where Path.FileMakerPathToNativePath would not convert a path on Windows.
- Version 7.5
- Changed Path.FileMakerPathToNativePath to detect if passed path is already a native path and return it.
- Rewrote Path.FileMakerPathToNativePath to work with path list.
Created 18th August 2014, last changed 8th January 2021
Path.AddPathComponent - Path.FilePathToFileURL
Feedback: Report problem or ask question.

Links
MBS Xojo Plugins