Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Queries location of user's downloads folder.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Folders 6.2 Yes Yes No No No
MBS( "Folders.UserDownloads" )   More




Returns path or error.


Queries location of user's downloads folder.
This is a native path. You can use Path.NativePathToFileMakerPath if you need to use path in a script step.
e.g. C:\Users\test\Downloads on Windows or /Users/test/Downloads on Mac.


Query download folder path:

MBS( "Folders.UserDownloads" )

Create folder in downloads:

Set Variable [$folder; Value:MBS( "Folders.UserDownloads" )]
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 download folder:

Set Variable [$folder; Value:MBS( "Folders.UserDowmloads" )]
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; "test.txt" )]

See also

Blog Entries

Created 22nd March 2016, last changed 7th November 2018

Folders.UserDocuments   -   Folders.UserFonts

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins