A descriptor type mismatch
A descriptor type mismatch
- Subject: A descriptor type mismatch
- From: Jeffrey McLean <email@hidden>
- Date: Thu, 22 Aug 2002 13:59:54 -0400
- Resent-date: Fri, 23 Aug 2002 17:46:28 -0400
- Resent-from: Jeffrey McLean <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: AppleScript Users <email@hidden>
Hi,
I am trying to write a script that copies a set number of records from
a database document. I have Appleworks 6.2.4 and Applescript 1.8.3 and
Mac OS X 1.5 on a 700 Mhz iBook.
tell application "AppleWorks 6"
activate
open DatabaseFile
--tell me to display dialog "This Database is: " & ThisDatabase
tell database of document ThisDatabase
set CompanyNames to the field "Company Name" of every record
whose field "Not Paid" = 1 as list
tell me to display dialog "Company Names are: " & CompanyNames
.
.
.
end tell
Result: --> AppleWorks 6 got an error: A descriptor type mismatch
occurred.
What is a descripter type? I have also tried set RecordCount to number
of records and got the same error.
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.