Jump to content

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


This topic is 5697 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 5697 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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