Files.GetNodeID
---------------

Queries the NodeID of the file or folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Files.GetNodeID"; Path ) 

**MBS**( **"Files.GetNodeID";** /\* Queries the NodeID of the file or folder. \*/  
**$Path**) /\* The native file/folder path. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file/folder path. | $path |

### Result

Returns file ID as number.

### Description

Queries the NodeID of the file or folder.  
On macOS, every file usually has an unique ID on the hard disk.  
Not all volumes support NodeIDs, but if they do, you can later find the file back on that volume using [Files.GetPathFromNodeID](FilesGetPathFromNodeID.md).  
  
Added Windows support in plugin version 8.5.  
While node id is currently a 64-bit integer, it could change in future to an UUID or 128bit number.  
  
Added iOS and Linux support in version 16.0. Sorry, but Linux has no good way to find a file by id except  
### Examples

Queries node ID:

 Set Variable \[$r ; Value:MBS ( "Files.GetNodeID"; "/Users/cs/Desktop/todo.rtf")\]  
Test ID functions:

 Set Variable \[ $path ; Value: "/Users/cs/Desktop/test.rtf" \]   
Set Variable \[ $id ; Value: MBS ( "Files.GetNodeID"; $Path ) \]   
Set Variable \[ $NewPath ; Value: MBS ( "[Files.GetPathFromNodeID](FilesGetPathFromNodeID.md)"; "/"; $id ) \]   
Show Custom Dialog \[ "Both Paths should be same" ; $Path &amp; ¶ &amp; $newPath \]  
Test on Windows:

 Set Variable \[ $node ; Value: MBS ( "Files.GetNodeID"; "C:\\Users\\Christian\\Desktop\\DbgView.exe") \]   
Set Variable \[ $path ; Value: MBS ( "[Files.GetPathFromNodeID](FilesGetPathFromNodeID.md)"; "C:"; $node ) \]   
Show Custom Dialog \[ "NodeID" ; $node &amp; ¶ &amp; $path \]  
### See also

- [Files.GetPathFromNodeID](FilesGetPathFromNodeID.md)

### Release notes

- **Version 16.0**
    - Added Linux and iOS support for [Files.GetNodeID](https://www.mbsplugins.eu/FilesGetNodeID.shtml) function.
- **Version 8.5**
    - Implemented [Files.GetNodeID](http://www.mbsplugins.eu/FilesGetNodeID.shtml) and [Files.GetPathFromNodeID](http://www.mbsplugins.eu/FilesGetPathFromNodeID.shtml) for Windows.
- **Version 8.4**
    - Upgraded [Files.GetPathFromNodeID](http://www.mbsplugins.eu/FilesGetPathFromNodeID.shtml) and [Files.GetNodeID](http://www.mbsplugins.eu/FilesGetNodeID.shtml) to use newer APIs which work for AFS volumes.

### Example Databases

- [Files/Alias and NodeID](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/Alias%20and%20NodeID.shtml#2ScriptAnchor_)

### Blog Entries

- [Neues MBS Plugin 16.0 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-01-13/Neues_MBS_Plugin_160_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 16.0 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-01-13/MBS_Plugin_160_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.6pr4](https://www.mbsplugins.de/archive/2025-12-22/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 8.5 - Über 5500 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2018-11-27/Neues_MBS_FileMaker_Plugin_85_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 8.5 - More than 5500 Functions In One Plugin](https://www.mbsplugins.de/archive/2018-11-27/MBS_FileMaker_Plugin_85_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.4pr3](https://www.mbsplugins.de/archive/2018-08-16/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

Created 18th August 2014 , last changed 20th December 2025

  
[Files.GetFinderLabel](FilesGetFinderLabel.md) - [Files.GetPathFromNodeID](FilesGetPathFromNodeID.md)

[HTML Version](FilesGetNodeID.shtml)