• 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 FMP 10.0v1 OS X 10.5.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with FMP 10.0v1 OS X 10.5.8


  • Subject: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • From: Simon Forster <email@hidden>
  • Date: Tue, 24 Nov 2009 12:48:04 +0000

Good luck with your approach. I gave up targeting tables as I couldn't get it to work and instead targeted layouts:

tell application "FileMaker Pro"
	tell document "Contacts DB"
		go to layout "<layout>"
		--Do stuff
	end
end

A bit messy as the layout swaps all over the place in my solution - but it works.

HTH

Simon

On 24 Nov 2009, at 12:29, Mark Lawrence wrote:

> Hi all,
>
> The following code always fails at the line set cell "email" to "something" with an object not found error.  The field email is on the active layout so what am I doing wrong?
>
> tell application "FileMaker Pro"
> 	tell database "Contacts DB"
> 		tell table "Contacts DB"
> 			try
> 				delete every request
> 			end try
> 			set theFindRequest to create new request
> 			tell theFindRequest
> 				set cell "email" to "something"
> 				find
> 				if (count of records) is greater than 0 then
> 					--do something
> 				else
> 					--- do the rest
> 				end if
> 			end tell
> 		end tell
> 	end tell
> end tell
>
> Regards,
>
> Mark Lawrence
>
> _______________________________________________
> 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 FMP 10.0v1 OS X 10.5.8
      • From: Bruce Robertson <email@hidden>
References: 
 >Problem with FMP 10.0v1 OS X 10.5.8 (From: Mark Lawrence <email@hidden>)

  • Prev by Date: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Next by Date: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Previous by thread: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Next by thread: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Index(es):
    • Date
    • Thread