August 16, 200718 yr 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, 200718 yr by Guest
August 16, 200718 yr 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,
August 17, 200718 yr 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.
August 18, 200718 yr Author do you have an example file of this you can post because I can't seem to get it to work. Thanks
August 19, 200718 yr Author 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
Create an account or sign in to comment