edudna Posted February 24, 2007 Posted February 24, 2007 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
Søren Dyhr Posted February 24, 2007 Posted February 24, 2007 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
edudna Posted February 24, 2007 Author Posted February 24, 2007 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...
Søren Dyhr Posted February 24, 2007 Posted February 24, 2007 Then &'e a dot and an extention to the $variable as well. --sd
edudna Posted February 25, 2007 Author Posted February 25, 2007 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
Søren Dyhr Posted February 25, 2007 Posted February 25, 2007 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
edudna Posted February 25, 2007 Author Posted February 25, 2007 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now