February 2, 200619 yr I am trying to make a button that will export my records but I need either a dialog that requires you enter a filename or I need the filename to be retrieved from a field.
February 3, 200619 yr With FM8's variables you can make the export file path dynamic. In the "specify output file" window when you setup the export script step, use a variable instead of a real path: $_output. In your script you can use a Custom Dialog to let the user type in a path, or take the path you have a in a field and with that info build a valid path in FM lingo: filemac:/volume/folder/file and put that in the variable.
February 21, 200619 yr I need to do something similar but in FMP 6. Can I export records automatically without having to name them myself?
February 22, 200619 yr In 6, the output file name & location is hard coded. So each subsequent export will overwrite the existing file. Unless you use some OS scripting right after the export to move/rename the exported file.
February 26, 200619 yr Ah, I have similar requirement in this respect as well. When executing a script to export record, a window dialog box will open up for user to input whatever filename they wish and what file type they would like to save the file etc. But I am interested to get whatever the user has keyed in as filename in the script, how can I capture the complete filename (together with extension) that the user has keyed-in in the script? Thanks in advance. NotPro
Create an account or sign in to comment