hartmut Posted August 16, 2007 Posted August 16, 2007 (edited) Hello Is it possible to script or calculate the naming of a file? I would like someone to back up theFilemaker file by a the contents of the text in a field- Or by the date and time. Can this be done by a script or a plug-in? Thanks Dave Edited August 16, 2007 by Guest
dreamingmind Posted August 16, 2007 Posted August 16, 2007 Well, it was news to me, but after reading a post yesterday (topic I can't recall) I learned you can name an export file by using a variable in FM9 (when did this start happening!). That should do it for you. Regards,
DesignX Posted August 17, 2007 Posted August 17, 2007 Well i Use a way of saving my orders to a pdf that uses the BillingName and PO Number as its filename. Set Variable[$pathprefix; Value:"file:" & Get(DesktopPath) & "Invoices"&"/"] Set Variable[$path; Value:$pathPrefix & OrderForm::BilltoName & " - " &OrderForm::.O.Number & ".pdf" Save Records as PDF[Restore;No Dialog;"$path";Automatically Open; Current Record] thats what i currently use but for you i think it might be something like this Set Variable[$pathprefix; Value:"file:" & Get(DocumentsPath) & "Backup"&"/"] Set Variable[$path; Value:$pathPrefix & Get (CurrentDate) & ".fp7"] Export Record [No Dialog; "$path"] THe above is untested, make sure there is a folder in your My Documents named Backup. It should save it with the currentdate as the name of your file but of course its untested.
hartmut Posted August 18, 2007 Author Posted August 18, 2007 do you have an example file of this you can post because I can't seem to get it to work. Thanks
CobaltSky Posted August 18, 2007 Posted August 18, 2007 do you have an example See attached: CreateBackup.zip
hartmut Posted August 19, 2007 Author Posted August 19, 2007 Thank you so much. I can understand it now. That was very nice of you to make a working copy for me to work with. You made my day. Thanks Dave
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