may have found it at this link.....
It doesnt say specifically if it will work for Pro 10. Do you think it will?
I will try it tomorrow.
You should be OK as long as you check for a "gotcha" that didn't exist with those older versions of filemaker.
The script will work correctly as long as all of your layouts refer to the same table occurrence. If they should refer to different table occurrences for the same data source table, they may not have the same current record and that could mess up your results.
In current versions, each layout is linked to a specific table occurrence "box" on your relationship graph. That's what you choose when you make a selection from the "show records from" drop down when you create a new layout and you can check this in Layout Setup... for each layout. Each such table occurrence has a different "curent record". Thus you could have several layouts that refer to the same data source table (the tales listed in the table tabl of Manage | Database) but different table occurrences.
If you find that this is the case with one or more of your layouts, you may need to include some script steps to find the correct record on the problem layout before you print from it. You can put a serial number field's value in a variable at the start of your script and use this in performing such finds.
Many folks find the terms Table, Data Source Table and Table Occurrence confusing. To learn more, click the following link:
Table vs. Table Occurrence (Tutorial)
It worked, great thanks.