Folders.UserDesktop
-------------------

Queries path to user's desktop folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Folders](component_Folders.md) | [4.3](newinversion43.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Folders.UserDesktop" ) ### Parameters

none

### Result

Returns path or error.

### Description

Queries path to user's desktop folder.  
This is a native path. You can use [Path.NativePathToFileMakerPath](PathNativePathToFileMakerPath.md) if you need to use path in a script step.  
  
For FileMaker Server it is possible to not have a desktop folder or to have it on a different location than normal user accounts.  
### Examples

Queries path:

 MBS ( "Folders.UserDesktop" )  
Create folder on Desktop:

 Set Variable \[$folder ; Value:MBS ( "Folders.UserDesktop" )\]  
If \[IsEmpty(Container Export::Name )\]  
 Set Field \[Container Export::Name ; "Record " &amp; Get(RecordID)\]  
End If  
Set Variable \[$path ; Value:MBS ( "[Path.AddPathComponent](PathAddPathComponent.md)"; $folder ; Container Export::Name )\]  
Set Variable \[$r ; Value:MBS ("[Files.CreateDirectory](FilesCreateDirectory.md)"; $path )\]  
Get file in desktop folder:

 Set Variable \[$folder ; Value:MBS ( "Folders.UserDesktop" )\]  
Set Variable \[$path ; Value:MBS ( "[Path.AddPathComponent](PathAddPathComponent.md)"; $folder ; "test.txt" )\]  
### See also

- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.md)
- [Text.ReadTextFile](TextReadTextFile.md)
- [Trace](Trace.md)
- [Trace.SetErrorsOnly](TraceSetErrorsOnly.md)
- [Trace.SetWithTimes](TraceSetWithTimes.md)
- [WebDownloadDelegate.SetFolder](WebDownloadDelegateSetFolder.md)
- [WebView.Create](WebViewCreate.md)
- [WordFile.ReplaceTag](WordFileReplaceTag.md)
- [XL.Book.DeleteSheet](XLBookDeleteSheet.md)
- [XL.LoadBook](XLLoadBook.md)

### Example Databases

- [AVRecorder/AVRecorder iOS Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AVRecorder%20iOS%20Test.shtml#1ScriptAnchor_)
- [AVRecorder/AVRecorder](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AVRecorder.shtml#1ScriptAnchor_)
- [Barcode/Barcode Generation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcode%20Generation.shtml#2ScriptAnchor_)
- [CURL/CURL Download Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Download%20Text.shtml#3ScriptAnchor_)
- [CURL/FTP/CURL FTP Download all Files in Directory](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/FTP/CURL%20FTP%20Download%20all%20Files%20in%20Directory.shtml#1GroupButton156.0000000414.0000000182.0000000547.0000000LayoutObjectAnchor_)
- [DynaPDF/Add Page Links](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Add%20Page%20Links.shtml#2ScriptAnchor_)
- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#4ScriptAnchor_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#13ScriptAnchor_)
- [Win Only/Windows Player](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20Player.shtml#1ScriptAnchor_)
- [XML/XML Import](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XML/XML%20Import.shtml#1ScriptAnchor_)

### Blog Entries

- [Create PDF/UA with DynaPDF in FileMaker](https://www.mbsplugins.de/archive/2026-05-27/Create_PDFUA_with_DynaPDF_in_F/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 23 - Printing a PDF](https://www.mbsplugins.de/archive/2024-12-23/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 18 - ics-Files](https://www.mbsplugins.de/archive/2024-12-18/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 15 - vCard QR](https://www.mbsplugins.de/archive/2024-12-15/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 9 - Archives](https://www.mbsplugins.de/archive/2024-12-09/MBS_FileMaker_Advent_calendar_/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 Plugin Advent calendar: 3 - BinaryFile](https://www.mbsplugins.de/archive/2023-12-03/MBS_Plugin_Advent_calendar_3_-/monkeybreadsoftware_blog_filemaker)
- [How to use Trace](https://www.mbsplugins.de/archive/2023-07-15/How_to_use_Trace/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Build archives on the fly](https://www.mbsplugins.de/archive/2023-02-27/Build_archives_on_the_fly/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2024, Seite 29](https://filemaker-magazin.de/neuigkeit/4272-Appetithappen-FMM_202405)
- [Ausgabe 4/2023, Seite 37 bis 39](https://filemaker-magazin.de/neuigkeit/4233-Appetithappen-FMM_202304)
- [Ausgabe 6/2021, Seite 21](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)
- [Ausgabe 4/2020, Seite 34 bis 35](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function is free to use.

Created 18th August 2014 , last changed 4th June 2023

  
[Folders.UbiquityContainer](FoldersUbiquityContainer.md) - [Folders.UserDocuments](FoldersUserDocuments.md)

[HTML Version](FoldersUserDesktop.shtml)