• 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: More FMP8 Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More FMP8 Questions


  • Subject: Re: More FMP8 Questions
  • From: Tim Mansour <email@hidden>
  • Date: Thu, 25 Jan 2007 09:21:02 +1100


On 25/01/2007, at 2:49 am, Chris Prew wrote:

tell application "FileMaker Pro.app"
go to document "MyApp"
tell document "MyApp"
go to layout "Invoice"
tell current layout
set my_list to cell "InvoiceID" of (every record whose cell "Status" is equal to "Open")
end tell
end tell
end tell



Try this:

tell application "FileMaker Pro"
open document "path:to:myapp"
show layout "Invoice"
try
set my_list to cell "InvoiceID" of (every record of table "Invoices" whose cell "Status" is equal to "Open")
on error
set my_list to {}
end try
end tell


Note that you'll need to insert the correct table name: I've assumed "Invoices". Also, if there are no records with Status="Open" then FileMaker will error, so you need to trap for that.

--
Tim Mansour <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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: More FMP8 Questions
      • From: Chris Prew <email@hidden>
References: 
 >More FMP8 Questions (From: Chris Prew <email@hidden>)

  • Prev by Date: Re: tivo XML
  • Next by Date: Re: Checking If A Finder Window Is Already Open
  • Previous by thread: More FMP8 Questions
  • Next by thread: Re: More FMP8 Questions
  • Index(es):
    • Date
    • Thread