Brian Dunning's FileMaker Custom Functions

GetDownloadsPath

Calculates the system download folder by modifying the document folder path.

  Average rating: 4.8 (25 votes) Log in to vote

Mike Beargie   Mike Beargie - Show more from this author
MainSpring, Inc.
http://www.gomainspring.com

Share on Facebook Share on Twitter

  Sample input:
GetDownloadsPath
  Sample output:
/SSD/Users/username/Downloads/

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

JBante tweeted a request that there be a native Get(DownloadsPath) function. In the meantime I figure I'd toss this together as a way to calculate the path. This will probably need updated for things like iOS and such, but the jist of it is to take the documents path, slice off the "Documents" part of the name and append "Downloads" in it's place.

I could see this being expanded to use get(systemversion) and get(systemplatform) as well to account for differences in windows file paths and for iOS. But for now, at least in the most recent OS versions, this functions appropriately.

 

Comments

Adam Glick   Adam Glick, HelpDesk, Inc.
Aug 17, 2015
nifty and handy. thanks! using this to dump exported container files to the logged-in user's downloads folder and automatically view them.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: