You should be able to use:
Get ( DesktopPath ) & tableOccurrenceName::fieldName &"tds.pdf"
Note: in most cases, you can use: "file:" & Get ( DesktopPath ) & tableOccurrenceName::fieldName & "tds.pdf"
instead of the platform specific filemac and filewin tags to avoid the need to test for a specific plattorm.
If the above syntax does not work, you'll need to describe teh context in which you are using this calculation. In a calculation field? In a set variable script step?
If in a script step, the current record and current layout's specified table occurrence can affect what value if any is returned by the field reference.
It was just as simple as you mentioned. No special function call, just the table and field. I also took out the system tests and it's working like a charm.
Thanks for the swift reply!
BTW, the simplest way to add a correctly entered reference to a tableoccurrence::field in a calculation is to put your cursor where you want it to appear in the specify calculation dialog and then double click the desired field in the list of fields shown above your expression. There's a drop down there where you can first select a table occurrence and then select a field defined in that occurrence's data source table.