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.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

Path.FileMakerPathToNativePath

Converts a FileMaker path useful for "filemac:" and "filewin:" path specification to a native path.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Path 2.4 Yes Yes Yes Yes Yes
MBS( "Path.FileMakerPathToNativePath"; path )   More

Parameters

Parameter Description Example
path The FileMaker file path. "/Macintosh HD/Users/test/Desktop/picture.jpg"

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

Example Databases

Blog Entries

FileMaker Magazin

Release notes

Created 18th August 2014, last changed 10th August 2020


Path.AddPathComponent   -   Path.FilePathToFileURL

Feedback: Report problem or ask question.




Links
MBS FileMaker blog