Re: Problem with AppleScripting FileMaker
Re: Problem with AppleScripting FileMaker
- Subject: Re: Problem with AppleScripting FileMaker
- From: Peter Gort <email@hidden>
- Date: Thu, 21 Jun 2018 19:55:38 +1000
Hi David,
"create new record” will return a reference to the new record, you don’t have
to use “tell last record"
So you can use something like this:
tell application "FileMaker Pro Advanced"
-- if you are making a record on the currently visible layout then you
can use "current layout” to target it
tell current layout
set theNewRecord to create new record
tell theNewRecord
-- do stuff
end tell
end tell
end tell
Peter Gort
> On 20 Jun 2018, at 6:56 pm, David Crowe <email@hidden> wrote:
>
> 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
_______________________________________________
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