superman_kd Posted February 2, 2006 Posted February 2, 2006 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.
Wim Decorte Posted February 3, 2006 Posted February 3, 2006 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.
Tony M Posted February 21, 2006 Posted February 21, 2006 I need to do something similar but in FMP 6. Can I export records automatically without having to name them myself?
Wim Decorte Posted February 22, 2006 Posted February 22, 2006 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.
NotPro Posted February 26, 2006 Posted February 26, 2006 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
Recommended Posts
This topic is 6845 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 accountSign in
Already have an account? Sign in here.
Sign In Now