Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6367 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted

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,

Posted

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.

Posted

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

This topic is 6367 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.