Control database from another database using AppleScript
I'm a beginner, using FM Pro 12 on a Mac. I want to control a database from another database.
When I run this script from AppleScript Editor, the script runs fine and the script "My Script" is executed:
tell application "FileMaker Pro"
tell database "My Database"
do script "My Script"
But when I run the same script from a button in another database, I get "Object Not Found. Unknown error -1728". Why would that be?