Gidday Mark,
Om my machine, your script does not work, using the example
files you
provided, unless I amend your script's syntax to the one I
posted earlier. The
fact that Bill encountered similar problems suggests there's
something
different about your setup. All of the steps I included in
my rewrite of your
script were necessary to get the right result. <shrug>
10.3.9, FMP 6.0v4.
Cheers!
Joe
> That is what I thought. I was shocked myself when it
> worked without telling the particular database.
>
> > tell application "FMP6"
> > go to database "2.fp5" -- bring to front
> > tell database "2.fp5"
> > do script "RelatedRecords"
> > end tell
> > tell document "1.fp5"
> > get every record of layout "Data Layout"
> > end tell
> > end tell