1 Reply Latest reply on Dec 21, 2014 8:46 AM by JaapRoos

    Control database from another database using AppleScript

    JaapRoos

      Title

      Control database from another database using AppleScript

      Post

      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"
          activate
          tell database "My Database"
              do script "My Script"
          end tell
      end tell

      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?