Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Using Script Editor on Mac 10.3.5, I am unable to refer to FileMaker 7 tables. Even though table appears in the FileMaker Pro dictionary (as an element of database), Script Editor acts like the word "table" is undefined. For example, the following script gets an AppleScript error that the variable tables is not defined. Any suggestions?


tell application "FileMaker Pro"

  tell database 1

    count tables

  end tell

end tell

Posted

I have no problem with 10.3.4 (other than the fact that it counts table occurrences not tables).

I wonder if this is because you also have version 6 installed? It will definitely not understand the "tables." It can be kind of a pain to keep them separate. It used to happen to me all the time. But if you launch 7 and don't launch 6 it might work. Also, is "FileMaker Pro" the exact name of 7, or is FileMaker Pro 7 (I don't have it on this machine, so can't check).

I used to have that problem, but now I have FileMaker Developer 7 and FileMaker Pro 6 on this machine, so I don't anymore. (On my other machine I have FileMaker Pro 7 and FileMaker Developer 6, also no problem :-)

You can also try this construction, which seems to help if you have 2 versions:

tell application "Finder"

ignoring application responses

launch application file id "FMP7"

end ignoring

tell application "FileMaker Pro"

tell database 1

count tables

end tell

end tell

end tell

  • Newbies
Posted

Yes, I do have both FM6 and FM7 installed, but only FM7 is running when I am trying these scripts. I get the same error running your test script.

  • 2 months later...
  • Newbies
Posted

just name your FileMaker Pro.app to something like FileMaker Pro 7.app change it in the tell to tell application "FileMaker Pro 7" and try again. I had the same problem and solved it that way!

(maybe you already solved it, since you posted your problem in october and it's december already)

This topic is 7275 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.