Path.NativePathToFileMakerPath
------------------------------

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

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Path](component_Path.md) | [2.4](newinversion24.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Path.NativePathToFileMakerPath"; Path ) 

**MBS**( **"Path.NativePathToFileMakerPath";** /\* Converts a native path to a FileMaker path useful for "filemac:" and "filewin:" path specification. \*/  
**$Path**) /\* The native file path.e.g. "/Users/test/Desktop/picture.jpg" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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. 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 FileMaker path:

 MBS ( "Path.NativePathToFilemakerPath"; "/Users/test/Desktop/picture.jpg")  
Build temp path:

 "imagemac:" &amp; MBS ( "Path.NativePathToFileMakerPath"; MBS ("[Path.AddPathComponent](PathAddPathComponent.md)"; MBS ("[Folders.UserTemporary](FoldersUserTemporary.md)"); "test.jpg") )  
### See also

- [Folders.System](FoldersSystem.md)
- [Folders.SystemFonts](FoldersSystemFonts.md)
- [Folders.SystemTemporary](FoldersSystemTemporary.md)
- [Folders.UserDocuments](FoldersUserDocuments.md)
- [Folders.UserDownloads](FoldersUserDownloads.md)
- [Folders.UserMusic](FoldersUserMusic.md)
- [Folders.UserPreferences](FoldersUserPreferences.md)
- [Folders.UserTemporary](FoldersUserTemporary.md)
- [Folders.Windows](FoldersWindows.md)
- [Path.AddPathComponent](PathAddPathComponent.md)

### Release notes

- **Version 15.0**
    - Fixed an issue with [Path.NativePathToFileMakerPath](https://www.mbsplugins.eu/PathNativePathToFileMakerPath.shtml) on Linux adding an extra / to the path.
- **Version 14.2**
    - Improved [Path.NativePathToFileMakerPath](https://www.mbsplugins.eu/PathNativePathToFileMakerPath.shtml) to not put in the disk name if it is already there.
- **Version 8.3**
    - Changed [Path.NativePathToFileMakerPath](http://www.mbsplugins.eu/PathNativePathToFileMakerPath.shtml) to make sure we have a / on the end on Mac.

### Example Databases

- [Files/FileMakerPath to NativePath](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileMakerPath%20to%20NativePath.shtml#1ScriptAnchor_)
- [Mac only/Services for Mac OS X/ServiceProvider test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Services%20for%20Mac%20OS%20X/ServiceProvider%20test.shtml#2ScriptAnchor_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 15.0pr9](https://www.mbsplugins.de/archive/2025-01-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.2pr4](https://www.mbsplugins.de/archive/2024-05-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 7 - Paths](https://www.mbsplugins.de/archive/2023-12-07/MBS_Plugin_Advent_calendar_7_-/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.3pr1](https://www.mbsplugins.de/archive/2018-06-04/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.1pr9](https://www.mbsplugins.de/archive/2015-05-16/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [Sending files from Finder to FileMaker](https://www.mbsplugins.de/archive/2014-10-18/Sending_files_from_Finder_to_F/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr1](https://www.mbsplugins.de/archive/2012-10-08/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7fc](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.7 Release notes](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_27_Releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.4 release notes](https://www.mbsplugins.de/archive/2011-10-11/MBS_Filemaker_Plugin_24_releas/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2018, Seite 16](https://filemaker-magazin.de/neuigkeit/3997-Appetithappen-FMM_201804)
- [Ausgabe 1/2017, Seite 10](https://filemaker-magazin.de/neuigkeit/3923-Appetithappen-FMM_201701)
- [Ausgabe 3/2012, Seite 31](https://filemaker-magazin.de/neuigkeit/3561-Appetithappen-FMM_201203)

This function is free to use.

Created 18th August 2014 , last changed 20th February 2024

  
[Path.LongPath](PathLongPath.md) - [Path.RemoveLastPathComponent](PathRemoveLastPathComponent.md)

[HTML Version](PathNativePathToFileMakerPath.shtml)