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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Path.NativePathToFileMakerPath

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

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Path 2.4 Yes Yes Yes Yes Yes

MBS( "Path.NativePathToFileMakerPath"; path )

Parameters

Parameter Description Example value
path The native file path. "/Users/test/Desktop/picture.jpg"

Result

Returns the FileMaker path.

Description

Converts a native path to a FileMaker path useful for "filemac:" and "filewin:" path specification.
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. Mac OS X 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 FileMaker path:

MBS( "Path.NativePathToFileMakerPath"; "/Users/test/Desktop/picture.jpg")

Build temp path:

"imagemac:" & MBS( "Path.NativePathToFileMakerPath"; MBS("Path.AddPathComponent"; MBS("Folders.UserTemporary"); "test.jpg") )

See also

Example Databases


Path.LastPathComponent   -   Path.RemoveLastPathComponent

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins