Hi Jay,
I tested your script on a new file as you described containing only the fields mentioned in the AS with the following script:
I used Filemaker PRO Advanced 8.0v2
tell application "FileMaker Pro Advanced" set FirstName to cellValue of cell "VName" of current record of layout "Eingabe" of document "KndStamm" set LastName to cellValue of cell "NName" of current record of layout "Eingabe" of document "KndStamm" set TelNr to cellValue of cell "T portable" of current record of layout "Eingabe" of document "KndStamm" end tell FirstName
It works perfectly.
This means that you may have no data in the fields, or the layout is misspelled or missing, or you have not activated the layout that you wish to work on.
You could also have the file closed at the time of activating the script, and the script completes before the file is open.
You can find out which of these is happening using error statements to ensure that the fields contain data, and that the layout exists. (or even if the file exists, but that would be a bit obvious.) You could also put a delay in the script to ensure the file opens in time. You could add a line to the script to navigate to the correct layout.
There is myriad of other possibilities depending on your original file, but these would be the first I checked.
Show me the man who enjoys any part of Bolero whatever and I will travel a long way to have a look at him.
(John Harding)
Peter Baxter
|