AppleWorks database, Apple's example fails
AppleWorks database, Apple's example fails
- Subject: AppleWorks database, Apple's example fails
- From: Jeffrey Mattox <email@hidden>
- Date: Thu, 15 May 2003 03:58:58 -0500
I'm trying to run the AppleWorks database script example, verbatim,
from Apple's "AppleScript Usage Notes" document that ships with
AppleWorks 6.
It fails, as follows (it's only four lines -- broken for clarity):
tell application "AppleWorks 6"
make new document at beginning with properties
{document kind:database document, name:"FieldTest.DB"}
with data {{name:"Name", field kind:name field},
{name:"Location", field kind:text field}}
--> document "FieldTest.DB"
set record 1 of document 1 to {|Name|:"Fred First",
|Location|:"someplace"}
--> AppleWorks 6 got an error: Can't get some object. Invalid index.
end tell
The actual example is longer, but it fails on the third line. This
is straight from Apple's document, cut and pasted into Script Editor.
When I look at the database file that was created, there is only one
field (named "Field 1") and AppleWorks has the Define Fields dialog
open.
What gives?
Jeff
_______________________________________________
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.