• 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: FileMaker 8 "create new record" again....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker 8 "create new record" again....


  • Subject: Re: FileMaker 8 "create new record" again....
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Mon, 13 Nov 2006 09:40:05 +1100


On 11/11/2006, at 3:03 PM, David Crowe wrote:

Perhaps someone can explain this.

The following code, running against a database file that has two tables, "Table1" and "Table2" creates a record in "Table1" when the current layout shows that table and the following code is executed:

tell application "FileMaker Pro Advanced" to tell database "Test" to tell table "Table2"
        create new record
end tell


Yet, the following code, which I would think is equivalent, does the 'right' thing and creates a record in Table2 as specified:

tell application "FileMaker Pro Advanced"
       create new record in table "Table2" of database "Test"
end tell

Any explanations?

Yes. FMP uses context to deduce a huge amount of information. It will always use the current layout (which has an implicit table) unless you specify a location using "at" or "in". You'll find this information in the Apple Events Reference database which is amongst the materials in the FMP application folder.


Is this for your Address Book synching database?

malcolm

_______________________________________________
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
References: 
 >FileMaker 8 "create new record" again.... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: FileMaker 8 "create new record" again....
  • Next by Date: Photoshop Alpha Channels
  • Previous by thread: Re: FileMaker 8 "create new record" again....
  • Next by thread: Re: FileMaker 8 "create new record" again....
  • Index(es):
    • Date
    • Thread