Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Set a field of an AppleWorks database



Hello,

I can get a field of a database like this:

		select every record
		set myList to {field <field name> of selection}

but the reverse doesn't seem to work:

		select every record
		set field <field name> of selection to myList

Or am I missing something?

I can write it out but it would nice if I could do it in one step:

set listCount to count items in myList
set recNum to 1

repeat until recNum = listCount + 1
set value of field <field name> of record recNum to (item recNum of myList1) as number
set recNum to recNum + 1
end repeat


Ugh!

Jan.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.