October 14, 200421 yr Newbies 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
October 14, 200421 yr 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
October 21, 200421 yr Author Newbies 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.
December 22, 200421 yr Newbies 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)
Create an account or sign in to comment