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
Folders.UserDesktop
Queries path to user's desktop folder.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Folders | 4.3 | Yes | Yes | No | Yes | Yes |
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 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 " & Get(RecordID)]
End If
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; Container Export::Name )]
Set Variable [$r; Value:MBS("Files.CreateDirectory"; $path)]
Get file in desktop folder:
Set Variable [$folder; Value:MBS( "Folders.UserDesktop" )]
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; "test.txt" )]
See also
- Shell.Execute
- SyntaxColoring.AddContextMenuCommand
- Text.ReadTextFile
- Trace
- Trace.SetErrorsOnly
- Trace.SetWithTimes
- WebDownloadDelegate.SetFolder
- WordFile.AppendTableRow
- WordFile.ReplaceTag
- XL.Book.SaveToFile
Example Databases
- AVRecorder/AVRecorder
- Containers/Archive Container
- CURL/CURL Download Text to file
- DynaPDF/Shrink PDF pages
- Files/File Listing With Icons
- GraphicsMagick/Create Multi Tiff
- Mac only/FSEvents
- Mac only/RichText/Write Document
- RunTask/Run Shell Script on Mac
- Win Only/Windows Player
Blog Entries
FileMaker Magazin
Created 18th August 2014, last changed 7th November 2018
Folders.SystemTemporary - Folders.UserDocuments
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins