Re: 7: AppleScript (FileMaker Developer 7)
Re: 7: AppleScript (FileMaker Developer 7)
- Subject: Re: 7: AppleScript (FileMaker Developer 7)
- From: Michael Grant <email@hidden>
- Date: Thu, 6 May 2004 12:25:53 -0500
On May 6, 2004, at 2:28 AM, Tom Robinson wrote:
I just created a test file called BDEInterface.fp7 with a single
database called DEntity and a field called folderPath. I then ran the
above script as a Perform AppleScript. Worked fine.
OK, this is weird. I've been doing some experimenting. First I create a
data file called "Testing.fp7", with one table "Testing" containing one
field "Testing".
I create a second file "Test2". In the Define Database dialog, I switch
to the relationship graph, which shows a single table occurrence. I
double-click on it and link it to the Testing table in my data file. A
layout is created automatically showing the single field. Next I create
a script called AS, with a single step "Perform AppleScript" running
the script code:
tell database "Test2.fp7"
set cell "Testing" of (current record) to "testing"
end tell
I check the "Include in menu" checkbox, enter browse mode, run the
script, and it works!
Now I create a third file "Test3". I do everything exactly the same way
with one exception: instead of linking the table occurrence that
appears automatically upon creating the file to my data file, I add a
new TO to the graph and link that one instead, and create the layout
manually. (And of course I update the file name in the script code.)
Now the script fails with "Write access denied. (Error -10006.)"!
Now, how the heck do I get the "set cell" syntax to work for other than
the first table occurrence in a file?
Michael
--
"I'd rather be dead than singing 'Satisfaction' when I'm 45."
- Mick Jagger
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.