Getting field value into applescript
Operating system: os x 10.7
Version: filemaker v11
I am trying to get the value of a field in filemaker to pass to an applecript called from a filemaker script. The filemaker script goes to the required layout which only contains one global field. The script then goes to the first record and calls the following applescript:
set urlName to cell "url" of current record
the filemaker script falls over at this point saying that it can't find the object. I have used this procedure in other scripts without any problems. What am I doing wrong?
I found the solution. My script saved a value to the global field but it did not insert a record and therefore, the applescript could not see it. Once I inserted a record into the table, it worked.