Re: AppleScript from FileMaker 5 to FileMaker 7
Re: AppleScript from FileMaker 5 to FileMaker 7
- Subject: Re: AppleScript from FileMaker 5 to FileMaker 7
- From: Bill Briggs <email@hidden>
- Date: Mon, 10 Apr 2006 12:17:58 -0300
At 5:00 PM +0200 4/10/06, Jürgen Keser wrote:
>I have an old script that works wonderful with FileMaker 5.
>Now we've updated our database to FileMaker 7 and the script
>will give me an error message. Are there some new commands for
>FileMaker 7?
>
>Enclosed I'll send you an part of the script.
>
>on run
>tell application "FileMaker Pro"
>activate
>set datensatz to current record of database 1
>set mailfeld to name of database 1
>set Maillist_Status to cellValue of cell "Maillist_Status" of datensatz
>end tell
>end run
>
>Is there an easy way to make this script compatible with FileMaker7?
Yes. In your script above you have set the variable "datensatz" to a list that contains the items in the current record of database 1. When you later try to get a cell value from that list, the list doesn't know what a cell value is, after all, it's just a list that was already pulled from the current record. So it returns an error. So you need to change the line to this.
set datensatz to a reference to current record of database 1
Now when you ask for the cellValue it will be FileMaker that processes the request and looks at the current record to find the desired cell. FileMaker Pro will understand what you want and return the right value.
- web
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden