5 Replies Latest reply on Jan 23, 2015 5:15 AM by rgordon

    FM Go Save a Copy Create Email


      I want to automate sending a backup copy of a local FM Go file.


      I used Save a Copy as with the options self-contained and create email selected.


      This works, but... it is not automated.


      If I add the Send Mail step and specify the backup copy of the file, so that I can predefine TO, Subject, etc. the file does not attach.


      I appreciate suggestions on how to automate the process so the user basically only has to click Send in the email window.





        • 1. Re: FM Go Save a Copy Create Email

          According to the documentation, saving a copy without a dialog is not a part of that script step:

          Save a Copy as


          Why don't you just backup the data somewhere instead of the entire file? People can't make changes to the layouts, schema or scripts in go, so the file will not be changing, only the data. There's tons of filemaker go oriented sync solutions out there, including FMEasySync, which is free. Also this way, you can set to only backup new or changed data, rather than the entire file, which keeps your backup size down.

          • 2. Re: FM Go Save a Copy Create Email

            Michelle,  the following script steps work on my iPad:

            set variable[ $file: Value: Get (DocumentsPath) & "file_name.fmp12"]

            SAve a copy as [$file; copy]

            Send Mail [Send via E-mail Client; "$file"]  (specify all of your email settings in this step)

            • 3. Re: FM Go Save a Copy Create Email

              What is the file path you are specifying in the send mail script step?

              • 4. Re: FM Go Save a Copy Create Email

                Thanks all for the replies and suggestions.


                RGordon: your idea worked. I tried something similar shortly after I posted. It needed a pause script step in-between the two steps. I'd found that suggestion in a few other posts. When I added a .5 second pause, all worked as it should. I think that gives time for the file to be saved.


                Mike: Will be using MirrorSync to sync with server hosted file soon. This is interim solution. Thanks for the suggestions, though.


                Todd: The file path that works is to use Get(TemporaryPath) & whatever file name you want specified for the file. I set a variable $Path at the beginning of the script and then the variable is the path indicated for the file. No problem saving the file, just a lag in getting it attached. I was hoping that the Send Email option would have some method of defining the TO: etc. but it doesn't, so the Send Mail step was required. (TemporaryPath works on the iOS device).


                Thanks again,



                • 5. Re: FM Go Save a Copy Create Email

                  Whenever I have a script that should work but doesn't work in Go, a brief pause or commit record solves the problem a majority of the time.