• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with AppleScripting FileMaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problem with AppleScripting FileMaker
      • From: David Crowe <email@hidden>
References: 
 >Problem with AppleScripting FileMaker (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Problem with AppleScripting FileMaker
  • Next by Date: Re: Problem with AppleScripting FileMaker
  • Previous by thread: Re: Problem with AppleScripting FileMaker
  • Next by thread: Re: Problem with AppleScripting FileMaker
  • Index(es):
    • Date
    • Thread