• 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
Scripting an AppleWorks database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting an AppleWorks database


  • Subject: Scripting an AppleWorks database
  • From: Jeffrey Mattox <email@hidden>
  • Date: Wed, 30 Apr 2003 03:52:43 -0500

I am just learning how to script an AppleWorks database, and have run into a problem.

tell application "AppleWorks 6"
every record of document 1 whose value of field "status" is "ready"
end tell

The "status" field is a text field. If every record in the database has a non-blank value for the "status" field, everything is fine and I get a list of records. However, if one or more of the records has an empty status field, the middle line fails with:

AppleWorks 6 got an error: A descriptor type mismatch occurred.

I cannot guarantee that every record is filled in. How do I get a list of records that match a condition, and skip those where the field is empty?

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.

  • Follow-Ups:
    • Re: Scripting an AppleWorks database
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Scripting Apple Mail
  • Next by Date: Re: Error: Stack overflow
  • Previous by thread: Re: Error: Stack overflow
  • Next by thread: Re: Scripting an AppleWorks database
  • Index(es):
    • Date
    • Thread