• 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: Don Rossi <email@hidden>
  • Date: Wed, 20 Jun 2018 10:09:39 -0400

I'm sitting in front of the Atlantic Ocean and nowhere near my Mac right now.
But, what happens when you tell the database object to “create new record”?

I wrote my handlers for FileMaker so many years ago and I haven't needed to
look at them. Your second example seems familiar to me. So, I suspect I've been
down the same road.

Sent from my iPad

> On Jun 20, 2018, at 4:56 AM, David Crowe <email@hidden> wrote:
>
> 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
 _______________________________________________
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: 2551phil <email@hidden>
References: 
 >Problem with AppleScripting FileMaker (From: David Crowe <email@hidden>)

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