Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Do you want FM create directories for you if they do not exist?

Featured Replies

Dear FM experts,

In a given script we have a variable before to save a copy of a file, in order to specify the paths that a file should go. How can we display previously a dialog:

"Do you want FM create directories for you if they do not exist?"

How can we make the script to create these directories if they do not exist?

Pascal

Hows about pulling a tiny batch file by this:

http://www.filemaker.com/help/ScriptsRef-267.html

: - Remember I'm on a mac, so it would make more sense to me to use a tiny shell thingy.

Maybe the solution to your task is to utilize this approach:

http://www.filemakermagazine.com/reference/specifying-paths.html

...and then write to temp instead, and then in the following scripting move it to new paths if necessary.

--sd

  • Author

Thank you Soren,

I test the second script but it saves a file without extension in desktop. No dialogs no nothing. Probably I need further assistance as usual...

Then &'e a dot and an extention to the $variable as well.

--sd

  • Author

Another issue is that I create a GetAsPath(text;folder) and not a GetAsPath (text{;folder})

function (how can I get {}in a custom function?) as the web page describe. When it saves a file in desktop it saves it with text+folder.ftp7.

I want Fm to create first the folder then the file inside it. I hope you understand.

Pascal

I hoped some of windows users might have jumped in, but you will find the answers to your question by downloading the template from this page:

http://www.codesentry.net/

The download includes a readme where the password to the filemaker solution is mentioned.

--sd

  • Author

I appreciate your help everytime, Soren, even I do not understand it at once. As I realized there is a way to command from FM to windows to do some trivial jobs as open or create a directory. Very usefull to my case, I have to confess and open new orizons to FM databases generally as the custom functions.

Pascal

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.