• 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
AppleWorks database, Apple's example fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Trying to export memos in Palm Desktop 4.0
  • Next by Date: Re: iTunes: any way to delete MP3's based on mod date?
  • Previous by thread: Re: Trying to export memos in Palm Desktop 4.0
  • Next by thread: Reaching a remote Mac through IP
  • Index(es):
    • Date
    • Thread