Have you tried editing a custom menu item of the same name in the File Copy? Assign the action to the script step "Save a Copy As" and choose the option you want (either "copy of current file" or "compacted copy")
Thanks for response.
I did what you suggested. By changing the "type," it does change the default "Save copy as..." to whatever I save the script as, but it does not disable or eliminate the other options when I use it from the Script menu - they all remain available from the drop down.
My goal is to keep users from fiddling around and using the "clone" option (either by mistake or on purpose), thereby erasing all their data.
If you can use a file:directory/name for your backup (in a variable) in the "Save a Copy as" script step then you can avoid the "clone" option.
Thanks for walking me through this.
I think you have taken me to the limit of my filemaker knowledge and skill level with the last suggestion (which is a good thing :) ).
I have successfully developed import and export commands using both relative and absolute file paths, but the variable file path method is new to me.
Looks like I'll need to do some homework, before trying to build it.
You can use a predetermined filename (e.g. file:Backup) in the script step just to see if it meets your needs before spending time on a $variable that could be set to more meaningful file names.
I'll start there.
Thanks again for all your help.