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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Path.NativePathToFileMakerPath
Converts a native path to a FileMaker path useful for "filemac:" and "filewin:" path specification.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Path | 2.4 | Yes | Yes | Yes | Yes | Yes |
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:" & MBS( "Path.NativePathToFileMakerPath"; MBS("Path.AddPathComponent"; MBS("Folders.UserTemporary"); "test.jpg") )
See also
- Folders.SharedDocuments
- Folders.System
- Folders.SystemFonts
- Folders.UserDesktop
- Folders.UserDocuments
- Folders.UserFonts
- Folders.UserPictures
- Folders.UserVideo
- Folders.Windows
- Path.AddPathComponent
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 8.3pr1
- MBS FileMaker Plugin, version 5.1pr9
- Sending files from Finder to FileMaker
- MBS Filemaker Plugin, version 3.0pr1
- MBS Filemaker Plugin 2.7 Release notes
- MBS Filemaker Plugin, version 2.7pr2
- MBS Filemaker Plugin 2.4 release notes
- MBS Filemaker Plugin, version 2.4pr8
FileMaker Magazin
Release notes
- Version 8.3
- Changed Path.NativePathToFileMakerPath to make sure we have a / on the end on Mac.
Created 18th August 2014, last changed 10th August 2020
Path.LongPath - Path.RemoveLastPathComponent
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins