The following code no longer works (I think it is a FileMaker Server 15 problem since the client I’m using is FileMaker 12 and I haven’t changed that for a long time).
tell application "FileMaker Pro Advanced" to tell layout "Temporary Folder Contents" tell (create new record) —> Here is the problem set {cell "thePrefix", cell "theNumber", cell "thePartLetter", cell "theRevision", cell "FileName", cell "theRest", cell "theExtension", cell "AttachmentType", cell "FileSize", cell "Contributor"} to {theprefix, theNumber, thePartLetter, theRevision, theFileName, theRest, theExtension, theKind, item i of theFolderSizeList, theContributor} end tell end tell
However, the following simple modification makes it work (it assumes that after you create a record it is the current record, but I think that’s a safe assumption:
tell application "FileMaker Pro Advanced" to tell layout "Temporary Folder Contents" create new record —> Change 1 tell current record —> Change 2 set {cell "thePrefix", cell "theNumber", cell "thePartLetter", cell "theRevision", cell "FileName", cell "theRest", cell "theExtension", cell "AttachmentType", cell "FileSize", cell "Contributor"} to {theprefix, theNumber, thePartLetter, theRevision, theFileName, theRest, theExtension, theKind, item i of theFolderSizeList, theContributor} end tell end tell
- David Crowe |