• 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: David Crowe <email@hidden>
  • Date: Thu, 21 Jun 2018 21:40:22 +0200

Peter;

Have you actually tried this? Because I’m sure it used to work this way, but
doesn’t any more. After “tell (create new record)” didn’t work, my next thought
was “set x to create new record” followed by “tell x…”. But it also didn’t
work. But if you got it to work, it must be something else that I did to break
things.

- David Crowe

> On Jun 21, 2018, at 11:55 AM, Peter Gort <email@hidden> wrote:
>
> 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
>> <mailto: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: Peter Gort <email@hidden>
References: 
 >Problem with AppleScripting FileMaker (From: David Crowe <email@hidden>)
 >Re: Problem with AppleScripting FileMaker (From: Peter Gort <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