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
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, Boston
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.

Under construction. Email me your wish list for improvements.