• 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 Object Not Found Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker Object Not Found Error


  • Subject: Re: FileMaker Object Not Found Error
  • From: "Larry Staton Jr." <email@hidden>
  • Date: Tue, 16 Sep 2008 12:01:45 -0400

On Tue, Sep 16, 2008 at 11:34 AM, Bruce Robertson <email@hidden> wrote:
>> On Mon, Sep 15, 2008 at 8:53 PM, Tim Mansour <email@hidden> wrote:
>>>
> A table reference is probably the best way to do this but it is not
> necessary.
>
> If you do not use a table refernce then you must specify a layout, and the
> fields you are trying to set must be on the layout. The original problem
> probably occurred because of fields not being present on the layout.

Specifying the layout does not work for me. And the fields were
present on the specified layout. The main difference between Joe's
solution and my script was the syntax.

I tried to tell the table (or layout) to create the new record and
received the object not found error:

tell application "FileMaker Pro"
 tell database "my_database" -- I also tried tell window "my_window"
   tell table "my_table" -- I also tried tell layout "my_layout"
     set newRec to create new record
     tell newRec
        set cell "my_cell" to "text_value"
     end tell
   end tell
 end tell
end tell

I changed the script to match Joe's solution and it worked:

tell application "FileMaker Pro"
 create new record with data {"text_value"} at table "my_table" of
database "my_database"
end tell

I should note that my initial script worked when I tested the script
against a local database, but it failed against a  remotely hosted
database. The second script worked on both the local database and the
hosted database.

Larry Staton Jr.
 _______________________________________________
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

References: 
 >Re: FileMaker Object Not Found Error (From: "Larry Staton Jr." <email@hidden>)
 >Re: FileMaker Object Not Found Error (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Easy Finder Question!
  • Next by Date: Re: Easy Finder Question!
  • Previous by thread: Re: FileMaker Object Not Found Error
  • Next by thread: Re. FileMaker Object Not Found Error
  • Index(es):
    • Date
    • Thread