• 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
New FileMaker AppleScript Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New FileMaker AppleScript Problem


  • Subject: New FileMaker AppleScript Problem
  • From: David Crowe <email@hidden>
  • Date: Fri, 02 Dec 2016 15:27:28 -0700


The following code no longer works (I think it is a FileMaker Server 15 problem since the client I’m using is FileMaker 12 and I haven’t changed that for a long time).


tell application "FileMaker Pro Advanced" to tell layout "Temporary Folder Contents"
tell (create new record) —> Here is the problem
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





However, the following simple modification makes it work (it assumes that after you create a record it is the current record, but I think that’s a safe assumption:

tell application "FileMaker Pro Advanced" to tell layout "Temporary Folder Contents"
create new record —> Change 1
tell current record —> Change 2
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


- 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

  • Prev by Date: Re: Pages 6.0.5 and templates
  • Next by Date: Mea Culpa (correction)
  • Previous by thread: Re: Pages 6.0.5 and templates
  • Next by thread: Mea Culpa (correction)
  • Index(es):
    • Date
    • Thread