Problem with AppleScripting FileMaker
Problem with AppleScripting FileMaker
- Subject: Problem with AppleScripting FileMaker
- From: David Crowe <email@hidden>
- Date: Wed, 20 Jun 2018 10:56:01 +0200
I have found that the following code does not work:
tell application "FileMaker Pro" to tell window "Meeting
Tracker" to tell layout "Temporary Folder Contents"
tell (create new record)
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
If I replace the innermost line with something like: set cell “thePrefix” to
“abc”, I still get “Object not found”. Even just: cell “thePrefix” generates
the error.
On the other hand, the following code, which is equivalent, but more
complicated, works:
tell application "FileMaker Pro" to tell window "Meeting Tracker" to tell
layout "Temporary Folder Contents"
create new record
tell last record — this works because FileMaker always creates new
records at ‘the end'
set {cell "thePrefix", cell "theNumber", cell "thePartLetter",
cell "theRevision", cell "FileName", cell "theRest", cell "theExtension", cell
"AttachmentType", cell "FileSize", cell "Contributor"} to {"abc", "def", "ghi",
"jkl", "mno", "pqr", "stu", "vwx", "yz", "012"}
end tell
end tell
Am I doing anything wrong? Or is the FileMaker AppleScript implementation just
broken?
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden